Skip navigation
timklapdor
Currently Being Moderated

InDesign Changing Hyperlinks

Jul 8, 2013 9:28 PM

Tags: #hyperlinks
 
Replies
  • Currently Being Moderated
    Jul 9, 2013 1:14 AM   in reply to timklapdor

    I would recommend to use tiny urls instead of this link.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2013 5:54 AM   in reply to timklapdor

    @Tim – this is a well known bug in InDesign CS6 that persists in InDesign CC.

    For the cause see my answer in #1:

     

    http://forums.adobe.com/message/4463255#4463255

     

    I will repeat that here:

     

    *****************

     

    Background:
    It seems that every URL that is filled in in the Hyperlink palette is encoded with something like encodeURI() (a global ExtendScript function):

    string encodeURI (text: string)

    Encodes a string after RFC2396.

    Create an UTF-8 ASCII encoded version of this string. The string is converted into UTF-8. Every non-alphanumeric character is encoded as a percent escape character of the form %xx, where xx is the hex value of the character. After the conversion to UTF-8 encoding and escaping, it is guaranteed that the string does not contain characters codes greater than 127. The list of characters not to be encoded is -_.!~*'();/?:@&=+$,#. The method returns false on errors.

     

    To get it back to a working URL we could decode it by "decodeURI()":

     

    string decodeURI (uri: string)

    Decodes a string created with encodeURI().

     

    *****************

     

    For a remedy (or workaround) you could use the following script (JavaScript/ExtendScript) from me with an enhancement by Joe Fugate:

     

    http://forums.adobe.com/message/4826322#4826322

     

    Or a script snippet (JavaScript/ExtendScript) presented here by Peter Kahrel:

     

    http://forums.adobe.com/message/5479294#5479294

     

    Uwe

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points