How to represent # in hyperlink URLs

I have a series of URLs that I want to use in hyperlinks, that all have a hash character in them. The hash character is necessary to load the page properly.


However, when I enter the URL "as is", the hash becomes %23 in the address bar, and the page does not display correctly.


The only method that works so far, is to replace the "#" with "&hash;". This works, but leaves "&hash;" in the url, unchanged. It also means I have to massage every URL.


That's not really a problem for my current purposes, but am wondering of there is a way to end up with just # as the final representation in the address bar of the browser.


What I've tried so far (in the hyperlink url):


Fails:

#

%23

char(35)


OK:

# (becomes &%2335;)

&hash;


Any ideas? :-)

MacBook Pro, Mac OS X (10.7.5)

Posted on Jul 25, 2013 2:12 AM

Reply
8 replies

Jul 25, 2013 7:03 AM in response to Wayne Contello

The hyperlink function is fine. It's just that if there is a hash in the resulting hyperlink, then when I click on it, the browser interprets the hash as "%23" and then the page doesn't load properly.


Might be just that site, and/or just that browser.


Here's a sample link:

http://www.nlm.nih.gov/cgi/mesh/2012/MB_cgi?mode=&term=Body+Regions&field=entry# TreeA01


Safari is my default browser.


---


Obviously, if I copy that link into Safari, there's no problem.


The problem lies in the interface between Numbers sending the link, and Safari interpreting what was sent.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to represent # in hyperlink URLs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.