Skip to main content
DBC-CUBIC
Participant
February 21, 2019
Answered

%0D being added to all URL's

  • February 21, 2019
  • 13 replies
  • 18744 views

Hi, I have a problem that I can't find the anwser to, so I'm hoping that you can help.

I'm making a new manual at work, and I have about 600 URL's that I've transfered over from excel.

When I export the file to PDF (Interactive) it auto adds %0d to my URL's so insted of sending the user to: https://www.mysite.eu/the_file.pdf the URL will say http://www.mysite.eu/the_file.pdf%0D

If I then go and delete the %0D from the browser line, the URL workes just fine.

So my question is, how do I get rid of the %0D when exporting to pdf ??

Here is a list of things that I've tried already:

- Export with "Shared destination" checked

- Export with "Shared destination" un-checked

- Checking in excel that the URL don't have any line breaks

- Checking in excel that the URL don't have "carriage return"

- Copying the URL to notepad, and from there to InDesign

- Typing the URL in InDesign manual

Nothing of this has worked for my.. Please help if you can.. The manual will be send out to our customers world wide, so it needs to work..

Correct answer BobLevine

Oh sorry..

I'm just using simple copy paste.

Marking the text in excel and then using "Ctrl+C" to copy, and then inserting it in InDesign using the "Insert new hyperlink" function.

I don't know if it makes a diffrence, but I'm inserting my hyperlink on an image insted of a text.


Try to place the Excel file into InDesign instead of pasting it.

13 replies

Participant
May 21, 2023

I had this same issue, it was due to there being 'space' at the end of my URL. I found that if I copied the URL directly from the internet search bar and pasted into the hyperlink, there was no extra 'space' at the end and I did not have any more issues.

Participant
November 25, 2022

I figured it out:

 

1. Add hyperlink

2. Save the file 

3. Go to Edit the link and place the cusror at the end and press backspace

4. Magically the hidden space will be deleted

5. Then Simply save again

6. Repeat for each link 

Participant
August 9, 2021

When you copy a CELL with a URL the *invisible* characters "%0D" are added to the URL. To verifiy you have invisible characters, on the Hyperlinks panel URL space, try to change the last letter/digit of the URL, by positioning the coursor at the end of the visible URL and backspace to replace. If you need more than one backspace clicks to get the coursor to remove the last character/digit, you have invisible characters on your URL and it will not function properly. 

 

You need to paste the URL as text, and only text. When I copy a URL from an excel file, I place the coursor on the cell but copy the content of the formula bar, which will copy as text, not the cell itself. 

 

Rondinone
Participant
September 15, 2020

Ok, had the same issue and figured out the reason/solution. At the end of the url's that are opening with '%0D' included, there is actually an extra space added that needs to be deleted. Go to edit your hyperlink within InDesign, click at the VERY end of the hyperlink (even if you don't see an extra space there), and press backspace once. You'll probably notice that the cursor won't even move; if there wasn't an extra space there, it was instead delete the last key typed. After deleting this (perhaps) invisible extra space, save it. Should now open properly. 

Participating Frequently
September 16, 2020
Hi
I appreciate your detailed response, but I'm afraid this didn't resolve my
problem.
I've tried to edit the links, clicking backspace, but there wasn't a hidden
character.

[image: photo]
*Inbal Zissu*
ZIS | Targeted Design

O +972-3-911-0301 | M +55-11-94067-9487

www.zis.co.il


andrzejg69013395
Participating Frequently
November 5, 2020

Just write the correct adress on your keyboard without pasting anything and than confirm modal OK with your mouse's left button. 

 

Same issue just has been resolved.

Community Expert
November 26, 2019

Hi InbalZissu,

by help of some scripting I read out all URL addresses of all buttons of your document with gotoURLBehaviors.

It's a very mixed list of addresses already in the document. Some encoded with Unicode like in this notation <0000>, some are not valid, some are OK, some seem to be OK, but do not work. So I'm really not sure anymore what's working and why are some failing.

 

Did you apply all the URLs with copy/paste from a list?

 

To do a bug report you should single out some of them that are OK with InDesign, looking OK at first glance with Acrobat but still do not work as intended. I'm not exactly sure why. Copy/paste errors? URL of a web page changed? No idea.

That's the hard stuff you have to check first. Time consuming for 99 buttons.

 

But how would you like to proceed?

Best test and change the URLs in the exported PDF you like to deliver.

 

FWIW: I still think, that the title of this thread:

%0D being added to all URL's

does NOT apply to the issues you are seeing.

 

Regards,
Uwe Laubender

( ACP )

Participant
August 26, 2020

This issue exists in current versions of the Adobe Reader products, english versions.  If only Adobe Reader is installed on the machine, then the %0D is being added to the end of a hyperlink.  If Nitro is installed and used to open the PDF, then the hyperlink works as expected and does not tack on the %0D.  Since the %0D represents a carriage return, then I would suspect that the carriage return is being entered into the Indesign document as hidden code.  Adobe Reader has the ability to read that code, whereas Nitro cannot or ignores it.

 

Since most people click enter after creating, typing a hyperlink to indicate that it is truly a hyperlink, or possibly test the hyperlink from the document while creating it, then this hidden carriage return could easily be added without a designer realizing it.  Can you please enter this issue as a code bug in In Design so that maybe it can be fixed in future updates.

Participant
April 19, 2022

I was having this same issue and this solved it for me. Thank you!

Community Expert
November 20, 2019

Hi InbalZissu,

FWIW: If I do publish your document with InDesign's Publish Online feature the URL links of the buttons that contain the Hebrew parts at the end of the link are working as expected. So I really think we have a bug with Export to PDF Interactive and buttons with gotoURLBehaviors.

 

However, with Publish Online the QR codes are done very lowres. To correct this you may consider using InDesign 2020 and place the QR codes as SVG vector graphics. Placing SVG graphics done with e.g. Adobe Illustrator is a new feature with InDesign 2020 and the SVG vector images should remain as vector graphics in the Publish Online HTML code. Did not test that yet.

 

Regards,
Uwe Laubender

( ACP )

Participating Frequently
November 26, 2019

Ok, so there's a bug that needs to be fixed.

I have no intention of looking for by-pass solutions.

 

By the way, the QR codes are made with INDD feature, it's really sad to see that this awesome software is full of bugs.

 

Thank you for your help.

Community Expert
November 19, 2019

Hi InbalZissu,

finally I found a solution to your problem.

EDIT: I was too optimistic! This issue is still NOT sorted. Sorry.

You have to encode the Hebrew glyphs in a different way.

 

One example where we leave that part of the URL anlone:

https://www.kolzchut.org.il/he/

 

But the encoding of the rest of the URL is this:

%D7%A0%D7%A7%D7%95%D7%93%D7%95%D7%AA_%D7%96%D7%99%D7%9B%D7%95%D7%99_%D7%9E%D7%9E%D7%A1_%D7%94%D7%9B%D7%A0%D7%A1%D7%94_%D7%91%D7%A2%D7%93_%D7%99%D7%9C%D7%93_%D7%90%D7%95_%D7%91%D7%95%D7%92%D7%A8_%D7%A2%D7%9D_%D7%9E%D7%95%D7%92%D7%91%D7%9C%D7%95%D7%AA

 

Can be done on the web for example here:

https://www.webatic.com/url-convertor

 

 

The combined string is now copied as URL to the button in InDesign.

Adobe PDF (interactive) export will generate a URL that is working with Adobe Reader.

 

I had no luck when encoding the whole URL.

 

Regards,
Uwe Laubender

( ACP )

Community Expert
November 18, 2019

Hi InbalZissu,

I suggest that you are doing a bug report on InDesign's behavior of exporting the URL with buttons:

https://indesign.uservoice.com/

 

Regards,
Uwe Laubender

( ACP )

Community Expert
November 18, 2019

Hi InbalZissu,

ok, then we have an issue.

I've seen into this again.

 

If I copy the URL of button 60 to a text frame, copy the contents to my browser I get this web page:

 

 

If I then assign the contents of this text frame as URL to a button's target and export as Adobe PDF Interactive I can see the same URL in Acrobat Pro with a different notation of the individual Hebrew glyphs, their corresponding Unicode codes:

 

 

As far as I can tell there is no glyph added.

The last one in the URL is <05EA> that corresponds with InDesign's contents of the text frame above the button:

 

However if I click the button with my Adobe Reader the following web page will open:

 

So I conclude this is a different issue that we are seeing here.

My German InDesign will export the Hebrew glyphs as Unicode codes and my browser is not able to translate them back to Hebrew glyphs like my copy/paste action is doing this OK when coming from the contents of my text frame.

 

No extra code is added, but the result is far from working.

I have no idea what to do to get this right.

 

Uwe Laubender

( ACP )

 

EDITED: Fixed a typo

Community Expert
November 18, 2019

I said: "I have no idea what to do to get this right".

This is meant in the context of InDesign.

With Acrobat Pro I could copy the URL to the button to maintain the Hebrew glyphs:

 

 

Regards,
Uwe Laubender

( ACP )

Community Expert
November 14, 2019

Hi InbalZissu,

it's hard for me to check your Hebrew document, but as far as I can see there is no issue with the hyperlinks of your buttons in this document. Exported a PDF (Interactive) with my German version of InDesign CC 2019. All buttons are working, means if the are clicked they will lead me to a web page. If they are working as expected I cannot tell, because I cannot read or understand any Hebrew.

 

Below an example from page 15 with Button 60.

In the layout:

 

Web page opened with Firefox on Windows 10 from my exported PDF opened in my German Adobe Reader:

The same page will be addressed if I open your PDF and click the same button.

FWIW: I cannot see any %0d characters added to the URLs as the original poster of this thread has seen.

 

So: What exact issue do you have with that document?

Maybe a bug with the Hebrew version of Adobe Reader?

 

Regards,
Uwe Laubender

( ACP )

Participating Frequently
November 18, 2019

Thank you very much for taking the time of looking into this.

I can not see the web address of the screenshot you've sent, you said there's no %0D added but - the page shows an error. "There's no page".

Have you tried couple of links? none of them adds %0D at the end?

Maybe it's a problem in the middle eastern version then, but still, you've got an error too.