• Nice plugin if I can get it to work correctly. I see this was an issue a couple of years ago. I am not sure if it is user error and I am missing something on my end.

    I have a secure site and the plugin automatically enters http instead of https into the page code for the pdf links which of course does not open in the viewer.

    The example code that the plugin rendered for the page above.

    <!-- wp:pdfjsblock/pdfjs-embed {"imageURL":"https://www.wilkesgenealogy.com/wp-content/uploads/2023/09/Levi-Absher-Ledger.pdf","imgID":2025,"imgTitle":"Levi Absher Ledger"} -->
    <div class="wp-block-pdfjsblock-pdfjs-embed pdfjs-wrapper">[pdfjs-viewer attachment_id=2025 url=https://www.wilkesgenealogy.com/wp-content/uploads/2023/09/Levi-Absher-Ledger.pdf viewer_width=0 viewer_height=800 url=https://www.wilkesgenealogy.com/wp-content/uploads/2023/09/Levi-Absher-Ledger.pdf download=true print=true fullscreen=true fullscreen_target=true fullscreen_text="View Fullscreen" zoom=auto  ]</div>
    <!-- /wp:pdfjsblock/pdfjs-embed -->
    <gwmw style="display:none;"></gwmw>

    Without sifting through the plugin code, am I missing some front-end switch and if not, do you know where I can change this to render it to write https so I don’t have to manually change the code on the WP page?

    That would be a PITA for hundreds of files ??

    Thank you.

    • This topic was modified 1 year, 1 month ago by jlc1964.
    • This topic was modified 1 year, 1 month ago by jlc1964. Reason: deleted copy and paste gibberish that attached itself to the code

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas McMahon

    (@twistermc)

    The plugin pulls the URL from WordPress. So WordPress is sending the insecure URL. Unfortunately, this is a WordPress configuration issue, not a plugin issue.

    Thread Starter jlc1964

    (@jlc1964)

    I have WP configured as https in its configuration. I ended up using another similar plugin that does not have this issue. Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not write correct URL on secure site’ is closed to new replies.