How to embed file links on a page with path-auto enabled?

Events happening in the community are now at Drupal community events on www.drupal.org.
pudge's picture

Hi,

I have a simple HTML page containing a few direct links to some pdf files on the server. (The page was created using the Page content-type and FULL-HTML Input format). I want the user to be able to click on the links and open the files in a new window. I placed these PDF files under a directry "/pdfforms" inside the Drupal home directory.

The problem is Path-Auto changes the path of my page to "content/mypage" so when I click on the file link they are looking for the pdf files in "content/padforms" so I get a "page not found" error. I tried to create a "content" file and put my pdfforms there but that did work. I can get these links to work by turning-off path-auto for this page and hard coding the path to "/mypage" but I rather not do that.

Does anyone know how to have working file links without changing the path-auto default settings?

I am using Drupal 6.13.
You can see the page at: http://travel.mysterymilonga.com/content/join-travnet-group

Thanks,

Wayne

Comments

Links...

jsimonis's picture

Have you tried adding a slash at the beginning of the address so that it looks like this:

<a target="_blank" href="/pdfforms/Application%20For%20Membership.pdf">Click Here</a> to view and print, ....

That's typically fixed it for me.

Simply start your links with

mikey_p's picture

Simply start your links with a / to make them absolute to your domain, instead of relative.

For example: href="/pdfforms/myform.pdf" instead of href="pdfforms/myform.pdf".

Thanks Guys :)

pudge's picture

I was hoping it would be something easy. I thought I was going to have to use php functions.