Skip to main content
alexandrav78579103
Participating Frequently
May 21, 2020
Question

# replaced by %23 when creating a web link

  • May 21, 2020
  • 4 replies
  • 10884 views

I need help with this one. I have been setting up documents for my organization with a url fragment for 4 years now. (A fragment is an internal page reference, sometimes called a named anchor. It usually appears at the end of a URL and begins with a hash (#) character followed by an identifier. It refers to a section within a web page. In HTML documents, the browser looks for an anchor tag with a name attribute matching the fragment).

I use the #page= [page number here] so that the url goes to a specific in the pdf when opened in browser.

Today, it isn't working! I type in the #page= and acrobat is automatically changing the URL text that I am typing to %23page= 

Simply: If I enter the Link with # in a browser, it works perfectly. The page and anchor exist.

If I enter the Link with %23 in any browser, I get an error 404

 

Why is acrobat replacing my url text?

Could it be a preference setting i'm not aware of?

 

Any help would be GREATLY appreciated.

 

This topic has been closed for replies.

4 replies

ls_rbls
Community Expert
June 3, 2020

THANK YOU ADOBE!!!

 

this issue has been fixed with the last update to version:

 

2020.009.20067

 

Additional note to the Acrobat community  users:

 

If you get an error "The Web Capture operation you have requested has failed because of an error"

 

Is because when you type in an http URL using a URI producing application, such as the Acrobat Weblink plug-in , you don't need to type https://www.adobe.com.

 

Just type your desired URL as:

 

https://adobe.com

 

Website written in HTML5 will handle this standard convention.

 

You will notice that your web browser will find the page and convert the whole URL automatically to:

 

https:// www.adobe.com

 

ashleyf31253982
New Participant
August 31, 2021

This seems to be a problem again. Anyone know of a good fix this time? version 2021.005.20060

ls_rbls
Community Expert
June 2, 2020

Hi,

 

Today a new optional update was released that addresses this issue.

 

Update Acrobat and see how it goes.

 

Creating a URL with the Weblink plug-in  seems to be working now.

 

I am getting a different error though.

 

"The Web Capture operation you have requested has failed because of an error"

 

Just checking on my end what is the issue.

 

 

Brainiac
May 24, 2020

This is nothing to do with Unicode or spaces or JavaScript. Acrobat has always had major problems understanding the structure of a URI, and it makes an invalid assumption about reserved characters.

 

The RFC3986 standard defines which characters can and cannot be used in a URI, and also defines a set of "reserved" characters that have a special meaning (such as / : ? # ). Any character not on the permitted list, such as a space, must be percent-encoded (commonly called "URL-encoding"). The RFC is perfectly clear about the rules:

 

  1. If a reserved character is being used for a reserved purpose (such as # to indicate an anchor name, or ? to show the start of a parameter list) then it must NEVER be percent-encoded. Browsers must process the character using its defined reserved function.
  2. If a reserved character is being used for any other purpose (a parameter might want to define mystring=has#tagz) then it must ALWAYS be percent-encoded, so it must be written mystring=has%23tagz . Browsers must process the character as plain text.

 

Some browsers are a little flexible when it comes to spaces in URLs, but they will always follow RFC3986 when they encounter a ? # or %

 

Acrobat always applies rule 2 and percent-encodes everything, no matter what. For the vast majority of URIs that is going to break things, and there is no way to tell Acrobat to stop messing about with the string. Adobe will argue it is playing safe by guaranteeing there will never be any "illegal" characters in a web link, but it's totally wrong to forcibly change the intention of user-entered data. It should leave the URI exactly as entered; if it's invalid that's the author's problem.

ls_rbls
Community Expert
May 24, 2020

Awesome!

 

thank you for clarifying.

ls_rbls
Community Expert
May 21, 2020

Have you noticed if this happened after an update took place in your machine?

alexandrav78579103
Participating Frequently
May 21, 2020

I'm not sure. My subscription with adobe cc auto-updates Acrobat and since this happens in the background, I'm not sure if it has recently updated. Since my first post, I uninstalled Acrobat, then reinstalled.... no change. 

alexandrav78579103
Participating Frequently
May 23, 2020

Hey alexandra,

 

Just a couple of days ago I've been coming accross this thread posted by clairecessford  which provides a very quick third-party solution:

 

https://community.adobe.com/t5/acrobat/ist-replaced-by-23-in-urls-gt-error-404/td-p/5811448 

 

In my opinion this is not answering why or what causes the issue, but it seems like it worked for other users.

 


Hi ls_rbls ,

Yes, I saw this post too. But with the amount of web links I generate, there are 2 issues:

1. I would need another subscription to another app because I would easily exceed the 1000 free limit

2. It would almost double my work time to do this: copy > paste > generate- there, then copy > paste > generate back in Acrobat.

 

argh. So frustrating 😞