Kyle
Kyle

Reputation: 43

PDF link reloads the page instead of downloading the PDF

I'm using WordPress for a website and I am editting the theme manually. I want to have a link that will prompt a download of a pdf document when clicked.

What happens currently is that when I click the link, it just reloads the homepage.

I'm using

< a href="/WordPress/wp-content/uploads/files/application-spring-2013.pdf">Application Form< /a>

inside my footer.php for the hyperlink.

you can view its behavior for yourself at

www.pepperdine-graphic.com

by clicking on the "Application Form" link in the footer.

Upvotes: 0

Views: 324

Answers (1)

E_p
E_p

Reputation: 3144

Looks like file does not exist:

WEB_ROOT/WordPress/wp-content/uploads/files/application-spring-2013.pdf

And server has redirect to an index.php if file does not exist. Just add file to proper folder or change link to point to proper file.

Upvotes: 1

Related Questions