Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

still_one

(91,965 posts)
Thu Apr 30, 2020, 08:54 AM Apr 2020

The "@" character in a hyperlink doesn't carry the complete hyperlink across

and one has to manually select and copy that link in the URL to access the link

Does anyone know how to allow the @ symbol in a hyperlink to carry the complete hyperlink across?



13 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
The "@" character in a hyperlink doesn't carry the complete hyperlink across (Original Post) still_one Apr 2020 OP
Replace the symbol with ... Yonnie3 Apr 2020 #1
It is all up to the poster Yonnie3 Apr 2020 #3
No you didn't, you answered my question. Thank-you still_one Apr 2020 #6
Thanks Yonnie. Really appreciate it still_one Apr 2020 #4
What Yonnie3 said jberryhill Apr 2020 #2
Excellent. Thanks still_one Apr 2020 #5
Thanks for telling the rest of the story. Yonnie3 Apr 2020 #7
You should use '%40' to encode it in the URL. Make7 Apr 2020 #8
Thanks still_one Apr 2020 #9
I have an old thread here about problems with links working on DU... Make7 Apr 2020 #10
+++ still_one Apr 2020 #12
That is indeed a better way. Yonnie3 Apr 2020 #11
Two simple ways to deal with that problem. highplainsdem Apr 2020 #13

Yonnie3

(17,376 posts)
1. Replace the symbol with ...
Thu Apr 30, 2020, 09:07 AM
Apr 2020

& # x 40 without the spaces

https://www.google.com/search?@

this URL had the & # x 40 without the spaces
https://www.google.com/search?@
but displays as a clickable @

don't preview the post as it will change to the symbol when posted and not work. I alos just found that if you edit the post you need to stick the & # x 40 without the spaces in again.

Yonnie3

(17,376 posts)
3. It is all up to the poster
Thu Apr 30, 2020, 09:16 AM
Apr 2020

I don't know any way to take care of that as a reader.

I think I misunderstood your OP

 

jberryhill

(62,444 posts)
2. What Yonnie3 said
Thu Apr 30, 2020, 09:16 AM
Apr 2020

Also, you will find this problem exists with spaces, parenthesis, and other special characters.

In the post above Yonnie3 provides you with the syntax for telling the software "I mean the hexadecimal code for the @ sign" which is 40.

If you run into problems with other characters, then you can look up the hexadecimal code using this chart:

https://www.ascii-code.com/

Yonnie3

(17,376 posts)
7. Thanks for telling the rest of the story.
Thu Apr 30, 2020, 09:41 AM
Apr 2020

I often don't say enough for people to fully understand my message.

When I was younger I'd say too much.

Make7

(8,543 posts)
8. You should use '%40' to encode it in the URL.
Thu Apr 30, 2020, 10:27 AM
Apr 2020
https://www.google.com/search?q=url+encode+for+@    (fail)

https://www.google.com/search?q=url+encode+for+%40    (success)


Using an HTML entity (@) as suggested in the replies above has a couple downsides:

• when you preview a post, it changes the HTML entity into the actual character which will break your link if you hit the Post button from the previewed page. You need to hit the back button on your browser before hitting the Post button.

• when you post it on DU the HTML entity will be changed into the actual character. Should you need to edit your post, you would need to go back and redo any HTML entities you used.


You can use URL encoding for other characters that break links here, just look up the hexadecimal code in an ASCII table.

Make7

(8,543 posts)
10. I have an old thread here about problems with links working on DU...
Thu Apr 30, 2020, 10:47 AM
Apr 2020

... unfortunately the formatting of the OP is all broken since they disabled some of the HTML allowed here after the hack.

It can be found in the Wayback Machine:

https://web.archive.org/web/20151031114237/http://www.democraticunderground.com/12561695#tab-home

(that sometimes has problems loading - slow or stalled, so give it ten seconds or so)

Yonnie3

(17,376 posts)
11. That is indeed a better way.
Thu Apr 30, 2020, 11:03 AM
Apr 2020

Thanks.

I serviced Baudot (actually ITA2) teletypes and Hollerith coding/reading equipment when I was young. ASCII was a newfangled thing I had to learn when I began servicing the "modern" teletype machines. Then the 8086 processor challenged me with op codes and assembly language in the early 80s. There is just so much to keep up with, I'm relieved ASCII has stayed around.

highplainsdem

(48,731 posts)
13. Two simple ways to deal with that problem.
Thu Apr 30, 2020, 10:11 PM
Apr 2020

One is to delete the @ symbol from the link.

The other way is to use the link button for text to link to the web address, including the @ symbol, with only the highlighted text referring to the link appearing in the message itself.

That works for links at Medium.com, for instance, and I assume for other websites.

Latest Discussions»Help & Search»DU Community Help»The "@" character in a hy...