anvithks/hugo-embed-pdf-shortcode

It is working FINE locally but NOT on hosted site.

srigurubyo opened this issue · 3 comments

Describe the bug
It is working fine while I run hugo on my local server. But it does not work (and keep rotating) on the hosted hugo site.

To Reproduce
Visit -> https://www.sribharathi.tech/about/

Expected behavior
It should work in both the modes.

Screenshots
image

I experienced the same problem.

The problem is you are using an absolute URL.
Use a relative url and it'll work just fine.

Describe the bug It is working fine while I run hugo on my local server. But it does not work (and keep rotating) on the hosted hugo site.

To Reproduce Visit -> https://www.sribharathi.tech/about/

Expected behavior It should work in both the modes.

Screenshots image

@srigurubyo Could you please share the link to your repo?

As @Hesbadami mentioned above, the location of the file should be specified with relative URL.

You can check the code for the demo site here to see how this works.

Let me know if it worked.

I checked the website and seems like you have used another solution.
If you do wish to use the shortcode again please do reach out.
Until then I will be closing this issue. Please feel free to reopen again.