hugo-embed-pdf-shortcode icon indicating copy to clipboard operation
hugo-embed-pdf-shortcode copied to clipboard

It is working FINE locally but NOT on hosted site.

Open srigurubyo opened this issue 3 years ago • 2 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

srigurubyo avatar Jan 17 '22 15:01 srigurubyo

I experienced the same problem.

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

Hesbadami avatar Jan 31 '22 20:01 Hesbadami

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.

anvithks avatar Feb 03 '22 06:02 anvithks

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.

anvithks avatar Mar 15 '23 10:03 anvithks