Title: PDF URL changes http:// to http
Last modified: November 18, 2020

---

# PDF URL changes http:// to http

 *  Resolved [Jgrabowski1](https://wordpress.org/support/users/jgrabowski1/)
 * (@jgrabowski1)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/pdf-url-changes-http-to-http/)
 * Every time I add a PDF I then have to copy the URL of the PDF and paste it over
   the top of the URL generated when “Add PDF” is pressed because I get the following
   URL eg:
    http%3A%2F%2Fwww.mysite.com%2Fwp-content%2Fuploads%2F2020%2F11%2Ftest-
   1-2-3.pdf
 * rather than this which is required to work:
 * [http://www.mysite.com/wp-content/uploads/2020/11/test-1-2-3.pdf](http://www.mysite.com/wp-content/uploads/2020/11/test-1-2-3.pdf)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/pdf-url-changes-http-to-http/#post-13695605)
 * Those two URLs are the same, one is just encoded. It has to be encoded in order
   to pass the PDF URL into the reader. Are you getting an error? If so, what is
   it?
 *  Thread Starter [Jgrabowski1](https://wordpress.org/support/users/jgrabowski1/)
 * (@jgrabowski1)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/pdf-url-changes-http-to-http/#post-13696316)
 * Apologies I may not have explained that very well. Yes, when I press the insert
   in the “Insert a PDF” I get the encoded version.
    I have just tested it now and
   it works with the encoded version. Previously when I did this it did not display
   the PDF correctly; has this been resolved now? Apologies for the confusion. Jan

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PDF URL changes http:// to http’ is closed to new replies.

 * ![](https://ps.w.org/pdfjs-viewer-shortcode/assets/icon-256x256.png?rev=2301161)
 * [PDF.js Viewer](https://wordpress.org/plugins/pdfjs-viewer-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jgrabowski1](https://wordpress.org/support/users/jgrabowski1/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/pdf-url-changes-http-to-http/#post-13696316)
 * Status: resolved