简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM