Community Forums › Forums › Archived Forums › General Discussion › hyperlink adds weird numbers to url
Tagged: Hyperlink
- This topic has 6 replies, 2 voices, and was last updated 11 years, 8 months ago by
Papaka.
-
AuthorPosts
-
July 8, 2013 at 1:06 pm #49829
Papaka
MemberAfter creating a page and adding an image, I want the image to be "clickable". So I used the hyperlink button on the page and saved it. Well, when I go to the website to test, I keep getting same problem. WP adds "%E2%80%8E" to the link and therefore the link ends up with a 404 error page not found. Not sure where to look to fix this one.
Click on "get quote" to see results. (http://www.uspalletsupply.com/Kuhl/)
Suggestions?
http://www.uspalletsupply.com/Kuhl/July 8, 2013 at 3:41 pm #49861Summer
MemberThose are hexadecimal character codes. Ever noticed how if you try to copy a link from a Google search without visiting it, that it's full those crazy character codes, like
http%3A%2F%2F
instead ofhttp://
?Same encoding. See the list: http://www.ascii.cl/htmlcodes.htm
Somehow, when you pasted that link, you also pasted those characters. Were you using the Visual editor, and maybe highlighted a little more space than you needed to when you pasted it in there?
If you switch to the HTML editor, you might be able to see the extra characters that are causing the problem and delete them, or delete and re-add the entire link itself.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJuly 8, 2013 at 4:45 pm #49874Papaka
MemberI understand what you are saying. However, that does not appear to be the case.
I removed the image completely and just typed a word "link" which I added a hyperlink to.
Did it with just raw html.
LinkAnd when you click on that link, it adds those goofy character and then the error message.
July 8, 2013 at 4:52 pm #49877Papaka
MemberWhat's interesting is the same thing happens when I mouse over the link I just made. Could it be browser related?
July 9, 2013 at 12:33 am #49928Summer
MemberThe image isn't the problem, it's your pasting that's the problem.
Does the same thing happen if you type the link in manually, instead of pasting it? I have a feeling that you are either highlighting extra characters to copy, or maybe there's some cruft in your clipboard that's being added?
I've seen it happen before, during a site move. The version of mysql and phpMyAdmin were different on the new system, and for some reason, the titles and permalinks for a lot of older posts had a lot of those hex character codes in them, plus some other alternate representations of curly quotes. The hex characters looked like they weren't there, but when the character encoding changed, suddenly all these titles had extra stuff in them. Turns out one of the guys had been pasting copy into the WP editor from Word. What a mess.
The link in my previous message was pasted in, so it's not a browser thing, it's definitely you pasting alien creatures 🙂
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJuly 9, 2013 at 5:44 am #49940Papaka
MemberThe above link was typed.
Using Firebug, here is the actual code as seen:
LinkBut notice what happens when I do as you suggest, just paste.
Link
Those characters show up. So it seems that the culprit is those characters, but I cannot reproduce ifOn my WP page using the Corporate theme, I typed in the raw html and still got the same results.
July 9, 2013 at 6:11 am #49941Papaka
MemberI resolved the issue but not the problem.
I created an entire image including text and original button as a jpg.
I then hyperlinked the entire image.
While it resolved the issue, sure don't know what was causing the problem.Perhaps I have a faulty keyboard and it's throwing in those characters.
Thanks
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.