Skip navigation
Currently Being Moderated

InDesign Changing Hyperlinks

Jul 8, 2013 9:28 PM

Tags: #hyperlinks
  • 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:



    I will repeat that here:




    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:



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




    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