Skip to main content
Participating Frequently
July 27, 2007
Question

Relative Link Paths

  • July 27, 2007
  • 38 replies
  • 89489 views
It would be great if you could set all links, or individual links, within a document to be either absolute or relative.

Every time I change a drive letter or folder name where a linked file is stored, I have to re-link it within InDesign. If I could specify a relative path for these such links (e.g. "../../image.psd") then it would go a long way to avoiding this issue. Making the path type changeable per link would mean files which reside in a folder which never changes would mean you could confidently set them as absolute paths.
    This topic has been closed for replies.

    38 replies

    December 16, 2013

    I think you can find the answer here

         http://indesignsecrets.com/making-relative-hyperlinks-to-files-in-indesign.php

    In case the link stops from working. I copied the essential part:

    "In CS4 and CS5, if you use the Hyperlinks panel to make a “File” type hyperlink, it appears to always be absolute. That’s too bad, because a “File” hyperlink seems like just what you’d want.

    However, if you choose to make a URL hyperlink instead (choose URL in the Link To pop-up menu), it does create a relative link!"

    dulajun
    Inspiring
    January 30, 2013

    See this add-on which I has written for InDesign CS6 on Mac using javascript.

    There is a command from the add-on that make it possible to rename a "Live Snippet". I hoped if Adobe did the same with links mechanism.

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

    dulajun
    Inspiring
    November 21, 2012

    I think that this is an instrumental philosophy issue related to the operating system and that because the computer must deal with any file or folder that had been renamed or moved as the same object (not a way of creating a new one and deleting the old) but exactly the same one with modified characteristics (its name or path) and reflecting these actions not only on operating system level but also communicating with the applications to synchronize these information with the files contents.

    As an example of this communication:

    The user: I want to rename the file apple.ai to be red_apple.ai.

    The OS: Are you intending to create a new file or just change the name?

    The user: Just change the name.

    The OS: ANNOUNCING (The file apple.ai has a new name).

    The user: Open the document Fruits_Menu.indd.

    InDesign: Ohh. the file apple.ai gone. Let's ask the OS.

    OS: No need to ask any one I hear you clearly, the file hadn't been deleted it's just has a new name which is red_apple.ai.

    InDesign: OK. Thanks.

    I think technically It's depending on the following:

    The OS must understand what user intent when he rename or move a file or folder.

    The application must ask the OS for these information.

    I don't know if there is a hidden automatic produced ID for every file embedded in somewhere that could distinguish the file.

    November 6, 2011

    Until I found this discussion, I thought either everyone else knew how to control hyperlinks in Acrobat or else I didn't know how to phrase the question.  I tried a lot of different ways to find help on the internet, but this is the first link I've found where people seem to have a similar problem to mine.

    I came back from a foreign vacation with thousands of photos, and with a lot of great memories of places I couldn't remember much about.  I spent months creating a MS Word 7.0 document where I pasted internet descriptions of all the places, monuments, unique restaurants, etc we'd visited. I created an ~ 10 page Table of Contents at the beginning of the document and hyperlinked each Table of Contents entry to the pages in the document where internet description was pasted.  I stored that document in the same directory with the nearly 2000 pictures we'd taken during the trip.

    Next - to the right of each line of the TOC - I typed the filenames of the photographs we'd taken of that that place. Now I could choose a town, or monument from the TOC and jump either to a thorough description of the place or to pictures I'd personally taken. The result was so cool that I decided to share it with some of the people we'd traveled with, so I bought thumb drives and copied my pictures and the 500 page Word document onto the thumb drive.  In the copy of the Word Document I could no longer jump to my pictures.

    Bear with me, there's a reason I talk about the Word Document.

    While I had the Word Document open - from the thumb drive - I hit ALT +F9 and all the hyperlinks became visible.  I found that the hyperlinks were "absolute" (i.e. they included the full path to the pictures).  Since the thumb drive was a different path.  Word couldn't hyperlink to the pictures anymore.

    Here's my point...  In Word, I could globally edit the hyperlinks just as easily as I could globally edit a document.  All I had to do was to globally delete the portion of the address and leave only the filenames of the pictures.  With that done, I hit ALT +F9 again to toggle off the text showing the hyperlinks and the pictures were once more accessible.  My other hyperlinks within the document itself were unaffected.

    In Acrobat I can't find any way to get it save the links without inserting the full path - which, of course, changes every time I copy the folder to another medium.  Worse, I can't find any way to edit the hyperlinks as I was easily able to do in Word.  Can Adobe take a cue from Microsoft and provide at least a way to edit hyperlink pathnames?

    (Or have they already done it and I'm just too ignorant to know how to do it).  As it stands, there's no convenient way to share my document - Different versions of Word paginate differently, and screw up the formatting,  so Acrobat was supposed to be my workaround to that problem.

    John Hawkinson
    Inspiring
    November 7, 2011

    hngbvf:

    In Acrobat I can't find any way to get it save the links without inserting the full path - which, of course, changes every time I copy the folder to another medium.  Worse, I can't find any way to edit the hyperlinks as I was easily able to do in Word.  Can Adobe take a cue from Microsoft and provide at least a way to edit hyperlink pathnames?

    You're posting to the InDesign Feature Requests forum, but you appear to have a question about Acrobat.

    You're much better off using an Acrobat forum.

    I believe you can edit individual links in Acrobat with the Link tool. I am not sure what it means to "globally" edit.

    I think you can automate mass changes to those links with Acrobat's scripting interface. This is probably annoying but entirely doable. Again, ask in an Acrobat forum.

    November 8, 2011

    I’m sorry that I posted the question in the wrong place. Your answer led me to look into Acrobat’s scripting interface. I admit it looks daunting, but I’ve pretty much conquered Visual Basic, so I guess I can work through the 600 + page reference manual I found for the scripting interface. I think you’re probably right that that’s how to fix my problem – at least I hope so, because I haven’t been able to find any other answer in several hours of internet searches for other people offering ways to tame the absolute links.

    Again, I’m embarrassed that I didn’t read carefully enough before I posted, but I’m still grateful for your help.

    Dave Fetters

    Participating Frequently
    August 22, 2011

    Another vote for relative paths for Indesign hyperlinks.

    I need to distribute a final PDF on CD-ROM that links to all sorts of files (Word docs, images, other PDF's, Excel files, etc...). If InDesign had relative links when I export to a PDF, I could put the CD on any computer and the links would work fine. Now I have to relink every link in Acrobat everytime there is an edit, no matter how simple. What a waste of valuable time.

    Participant
    September 9, 2011

    Well said, really frustrated that InDesign does not support relative link paths. been search around for a workaround and found out this feature has been requested awhile back, many versions ago. i dont know maybe i have not searched long enough for a workaround.

    Participating Frequently
    July 21, 2011

    I'm amazed that, this many years later, this simple feature request still hasn't been addressed. It isn't terribly confusing. "Relative" and "Absolute" are just two different methods for locating a referenced resource. More specifically, the difference is simply in where ID begins looking for the resource. Although they are both so simple, it would be easy to impliment the feature as a per-document (or even per-link) option.

    Example:

    This document:

    /archive/project/document.indd

    Contains a link to this resource:

    /archive/project/images/photo.psd

    Imagine that we save the entire contents of the project folder on a network drive (or check it into a versioning system, or whatever), and the location on that computer becomes:

    /main/project/

    Absolute:

    When ID opens document.indd and encounters the link, it sees this information: /archive/project/images/photo.psd and it begins searching for photo.psd from the root. So it asks "Is there a folder in /  named archive?". If it can't find the folder so it begins a sort of convoluted process of searching in other places (read previous posts to learn more about how). Suffice it to say that ID's process will fail to locate photo.psd due to the fact that the project/ folder is located in a folder named something other than archive/.

    Relative:

    If ID would implement relative linking, it would see the information ../images/photo.psd when it encounters the link and begin searching from the folder where document.indd currently resides. So it begins looking in the project/ folder and, it doesn't care what the name of the parent folders are.

    Legend
    September 13, 2011

    Hello Every One,

    I am I reading this right. If all the images ( images just for now ) are stored at the same folder level as the document, or within sub folders at the same level as the document ID fails to find these images when the folder containing the document is moved to a new volume?

    P.

    Participating Frequently
    September 13, 2011

    Hi P,

    Yes, this is true. InDesign is not capable of creating or automatically following relative links. When you store the resources for your indd file in the way you mentioned and move the indd file and those resources to a new location (while maintaining their locations relative to each other), InDesign will not be able to automatically locate those resources when the indd file is opened from the new location. It will prompt you aksing if you want it to "fix" "broken" links. If you confirm that dialog, it will alter the document's links and create a new revision of the file simply because you opened it.

    It get's very frustrating in a team environment where InDesign documents are under revision control.

    April 8, 2009

    I also just realized how much I would love to have a relative link option in InDesign.  I've learned to deal with the packaging idea, but it kind of unorganizes my files... Here's my scenario:

    I have a custom media kit I make for many clients, based on a template. There are many many elements involved so I have subfolders under my assets folder (which is my name for links) for each section.  If I package it, all subfolders are lost and all links are stuck in one folder, making it very hard to navigate to what I need to change.  If I could drag the file and assets subfolder to the new clients name, keeping my subfolder organized, it would be much easier to just open the files in the new location, change them, and have inDesign update the links.  As it stands now, if I did that, inDesign would  still pull from the original folder and I would have to relink everything to the new folder.

    It's not a matter of packaging not being able to solve the problem, the issue is that I find it much more of a hassle and much more time consuming that way, when relative links just seem more intuitive in this case.  Not to mention, it takes a lot more time to open the doc, package, and find the new place, rather than the simple drag and drop idea. 

    I think having the option to have links be relative or absolute would help me out GREATLY.  I am sure there are others in my position.

    Participant
    May 6, 2009

    Indesign CS4 has a 'Relink to Folder' option in the Link palete flyout menu. The problem with this is tha t it does not search subfolders.

    This would solve the problem by selecting 'Relink to Folder' you would be able to select the parent folder even the whole drive/server and Indesign would find it where ever you placed it. As long as you chose a folder in the higherarchy above the image you want to link.

    But in my tests Indesign will only find the links if you point it directly to the folder that contains the missing links.

    I have a problem, where our catalog was out sourced, and now I want to relink it to our huge image library that is organized as follows: server/alphabetically1/comapny/alphabetically2/product (e.g images/C/Canon/P/Canon Powershot G10.eps).

    To relink my files I need to relink them individually to the 'alphabetical2' folders.

    Maybe someone knows how to write a script for this?

    Participant
    January 20, 2009
    We would do *anything* for relative paths in InDesign.

    For a variety of reasons we have to copy InDesign projects from one server to another (server upgrades, document owner moves offices etc.). In most cases all our linked files are contained within a 'links' folder adjacent to the .Indd file. Even though InDesign stores absolute paths, it is clever enough to look inside the 'links' folder *if* the linked file can not be found along the stored path.

    But, if the project is copied to another sever and the original server is still available on the network, InDesign will continue to load linked files from the original location (which may be on the other side of the planet in our case), not the copied to location on the new server. Suddenly an InDesign file grinds to a halt.

    Do the same thing with one of our CAD projects, and everything works sweetly (most CAD packages have the option of storing paths as either relative or absolute).

    Absolute paths also defeat the benefits of using DFS (Distributed File Shares) in a windows environment for the same reason.

    Very frustrating!
    Participant
    December 2, 2008
    We spoke to an Adobe customer support rep on this very issue after migrating to newer servers recently and the support person commented that Adobe's "official" position on this issue is that InDesign wasn't designed to operate in a networked environment and there is no fix or work around. Thanks Adobe for making things even more difficult on top of your memory hog applications.
    Peter Spier
    Community Expert
    Community Expert
    September 10, 2008
    Are you using the Package command to make the archive?