I have created a pinit button which can be seen here
http://auragraphic.com/mag/
for each image there is a pinit button, when I am clicking on it I pass following things
url - this contains the image url
media - this contains the image url
description - this contains text + short url for product
example link
http://pinterest.com/pin/create/button/?url=http://auragraphic.com/mag/gqlive/timberlandlook_1.jpg&media=http://auragraphic.com/mag/gqlive/timberlandlook_1.jpg&description=I%20love%20GQ%20Live%20products%20http://goo.gl/pFNcl
When I am visiting the above link I am getting a message from pinterest that
This pin contains a link or text that we do not allow. We have blocked this pin for your safety
May I know what is wrong in the above example link
THis is happening because of the goo.gl shortener. I tried posting the same link without the shortening and it was posted successfully. So, either use some other whitelisted url shortener or use the complete link while sharing. Better option is to create your own url shortener using free URL shortener script from http://yourls.org/
Related
I am trying to do a simple thing , navigate to an external url
Class Books
However I am getting a 404 because the Http// portion is being deleted I am not sure if this is an mvc thing or html thing. Here is link http://18.217.228.108/angularapp1.
Here is a link to a screen shot of me accessing url
https://gyazo.com/455b01f1ceded24f9b4ce6c58b0e10e1
Curious-programmer,
You must navigate using an absolute URL just when it is out of your domain such as https://www.amazon.com/
However, I've noticed that you are trying to navegate to a link inside your own domain using absolute URL when you must use relative URL like:
Class Books
Try
Anchor Test
and then try keying http://18.217.228.108/angularapp1/book/ into your browser url.
The link you are using is actually 404.
Based on the link given in updated question:
The new link you've given is an html page (which you can navigate to in the "normal way"). It links to an angular app with an anchor "Books". Clicking on "Books", whilst attaching "book/" to the url in the browser (the url you're trying to link to in your original question), is intercepted by the script and actually navigates to:
http://13.59.126.130/BuellerWebApi_deploy/api/book/getAll
which returns a Json object containing data to display on the same page.
(Your concern about the removal of the http:// in the anchor is a red-herring (try navigating to http://www.bbc.com - you will see www.bbc.com in the browser url). It's the way your app has been configured.)
So, as things stand, navigating to the anchor in your original question, whilst appearing to be a valid url, actually is not. Its a 404.
I am using blogger. I am not an expert.
I'm trying to add an image on a post, with a link that differentiates according to the ccTLD you are on.
so for example, if you're on "example.blogspot .ca", the link attached to the image will be "example.blogspot .ca/p/blog-page_25.html"
And if you're on "example.blogspot .nl", the link attached to the image will be "example.blogspot .nl/p/blog-page_25.html"
And if you're on "example.blogspot .com", the link attached to the image will be "example.blogspot .com/p/blog-page_25.html"
Hopefully, you understand what I'm trying to say.
Can someone help me to do it?
If you want to add hyperlink of your blog to any of your post, you don't have to worry about ccTLD. This is because, blogspot automatically takes care this for you.
According to Google:
Country-specific domains is not a different blog address, but a domain redirect based on the country where you're currently located.(Source)
So use simple .com with your post/page url and anyone clicking on it will be redirected to appropriate ccTLD automatically.
You can even try this by yourself: Write your blog address with .com, it will load the page from the nearest server. In my case, if I hit example.blogspot .com, then it loads for me, example.blogspot.in.
So I am using the rails 'link_to' method to redirect a user to an external website upon clicking on it (where the link is inside a google maps marker info box). I am using the Gmaps4rails gem. I am building the link inside the marker info window as below, in one of my controllers, where each #locations has a website as one of its attributes:
#hash = Gmaps4rails.build_markers(#locations) do |location, marker|
link = view_context.link_to "#{location.website}", location.website, target: "_blank"
description = "Website: #{link}"
marker.infowindow description
end
Everything gets plotted fine, and the links work fine for about half the markers, where if you click on the website link in the description you get redirected to the website in a new tab.
However, there are some website links in which my code acts strange; clicking on the url redirects you to my "website url + the marker's website url", concatenated into one url.Why is this happening?
For example, the url upon clicking on some of the website links in the markers redirects you to a url like this: "mywebsite.com/www.website_in_marker.com". And of course I get a page you are looking for does not exist error.
It's very likely that some of the links do not have a protocol (http, https, etc.) prepended to it. Anything in the href without a protocol is assumed to be a relative path, which is why some links are appended in relation to your site and others are not.
Going through and ensuring all links include a protocol would be one way to resolve the issue.
Hope it helps!
I'm trying to make a link in the form of an image, so that the person navigates directly to the page that image is linked to. However I have no idea how to do this. Right now I have the image itself but when I click it it leads to a whole other blank page.
Can this be done using the tools of wordpress or maybe I need to download a plugin? Or perhaps I need to use HTML codes or something of the sort?
To insert a link using an image from your computer, follow these steps:
Go to a post or page editing screen. Click the Add Media button.
Add Media Button
Upload a new image, or click the Media Library tab and click the image you’d like to use as a link.
frommedia
You’ll be able to see the image’s Attachment Details. Choose the Custom URL option under Attachment Display Settings. Type in the URL to which you want the image to link to.
attachmentdetails
Click the Insert into post button.
The image is inserted into your post and linked to whatever was typed in the Link To field.
image with link inside post
↑ Table of Contents ↑
Link to an Image URL
To insert a link using an image stored somewhere else on the Internet, follow these steps:
Click the Add Media button.
Add Media Button
Click the From URL link.
from url
Type the URL of the image file into the URL text box. Your image will show up along with some options. Choose Custom URL under the Link To section and type in the URL to which you want the image to link to.
imagefromurl
Click the Insert into post button.
The image is inserted into your post and linked to the web site you set.
image with link inside post
<img src="your image link" />
You need to click on TEXT tab in the WP Post dashboard and type some html ...
also need to know that there is no plugin for anything you imagine... some things are simple enough and a lot of people can do it on their own
If I understand you correctly all you need to do is wrap a around the <img src="">:
<img src="imagelink">
The above will have an image and if you click on the image then it will bring you to http://example.com
I have been using the same function to generate twitter status URL's, but now when they are clicked, no status appears in the box in twitter.
The following is an example of what my URL's look like (using copy link location)
http://twitter.com/home?status=Just%20reading%20%27H.M%20Naqvi%20wins%20the%20DSC%20Prize%20for%20South%20Asian%20Literature%27%20http%3A%2F%2Ftinyurl.com%2F4c5mrex%20%40%09SthAsianLitFest%20
Does seem broken on Chrome.
Use this instead? http://twitter.com/intent/tweet?text=foo