#1
|
|||
|
|||
How to stop Word converting '%20' into spaces in URLs
I am using Word 97-2002. When trying to create hyperlinks to URLs that contain '%20', Word keeps changing the '%20' to a space in the hyperlink (ie., in the URL that pops up if you hover over with the mouse, not in the text itself), which causes the link not to work. It doesn't matter if I go into the Hyperlink menu and paste in the original link or change the spaces back to '%20' by hand - as soon as I hit 'OK', Word converts the '%20's back to spaces, and the link won't work. Is there any way to stop it doing this? |
#2
|
|||
|
|||
Not sure why it wouldn't work. %20 is a space. Can you provide a sample URL where it does not work so I can play around?
|
#3
|
|||
|
|||
https://www.unocha.org/sites/unocha/...%20Final_1.pdf
This link works fine. However, when it's turned into a hyperlink in Word, I can't stop it being converted to: https://www.unocha.org/sites/unocha/files/Armed Escort Guidelines - Final_1.pdf This second link does not work when you try to access it through Word, though if you paste it into Chrome, the browser converts the spaces back to %20 and opens the URL. Which means that Word is converting the %20s into spaces which Word itself doesn't recognise for the purpose of accessing URLS... |
#4
|
||||
|
||||
The problem is not actually a limitation of Word. It is a behaviour of the autoformat function in Word.
When you paste or type a string and Word recognises it as a valid URL, it automatically converts the string to a hyperlink (if your autoformat setting is turned on). This autoformat setting analyses strings of text and kicks in with a check when you add a space - therefore things after a space are not considered part of the preceding url. But you can select any text which includes spaces and press Ctrl-K to open the insert hyperlink dialog and set that selection as a hyperlink.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#5
|
|||
|
|||
Quote:
Hi Andrew, I was hoping you were right. However here is a Word document with the link entered in the Create HyperLink dialog as well as by AutoCorrect. Same result in each. |
#6
|
|||
|
|||
I saved as pdf and both links worked fine. Here is a screenshot from the pdf.
So, it is the hyperlink launcher in Word. |
#7
|
|||
|
|||
I just tried opening the same document in Word 2007. Same problem.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
When I copy from word, URLs and email addresses are truncated before the first period | Hills David | Word | 0 | 08-08-2018 11:36 PM |
Mail Merging Unique QR URLS from Excel to Word | lulu55 | Mail Merge | 1 | 03-29-2018 03:00 PM |
Not press F9 to refresh URLs? | ASW122 | Mail Merge | 5 | 07-14-2014 09:35 PM |
URLs in citations | acappella | Word | 3 | 07-24-2012 03:28 PM |
Spaces After Each Word | jnutella | Word | 0 | 03-04-2009 02:00 PM |