hugo-theme-docdock icon indicating copy to clipboard operation
hugo-theme-docdock copied to clipboard

revealjs: wrong BASE URL

Open linuxmail opened this issue 5 years ago • 3 comments

hi,

It seems, that the Revealjs does not use the configured baseURL. I have /doc/ and revealjs does not work, because https://foo.exmaple.com/revealjs does not exist, but https://foo.exmaple.com/doc/revealjs/ does.

Is there a way to fix it ?

cu denny

ps. Thanks for the great theme :-)

linuxmail avatar Apr 04 '19 12:04 linuxmail

hi,

I've found these lines:

https://github.com/vjeantet/hugo-theme-docdock/blob/1d12f5733354d9bd4e19e439f068bdc3cfdabe4f/layouts/shortcodes/revealjs.html#L20-L21

https://github.com/vjeantet/hugo-theme-docdock/blob/1d12f5733354d9bd4e19e439f068bdc3cfdabe4f/layouts/slide/single.html#L17-L18

which has a "/" at the beginning

cu denny

linuxmail avatar Apr 04 '19 13:04 linuxmail

Here also working with subdomain , and need to set canonifyurls to true to get working with subdomain , but then revealjs is not more working , and with canonifyurls set to false links does not uses subdomains (images not displaying) but revealjs is working . The starting "/" is not removed ,but removing it does NOT help. Hope somebody can help.

id027102 avatar Sep 12 '21 09:09 id027102

There must be a difference in working with canonifyurls set to true or false .
The generated html files are exactly the sames with canonifyurls set to TRUE or FALSE .
But with set to TRUE : SLIDE DOES NOT WORK.
And set to FALSE : SLIDE IS WORKING.
If you save the page souce from your browser : it NEVER works again (display the same as for canonifyurls set to true).
It seems of nobody follows this site , it is here for the fun only.
So I have to look for another (working) theme .

id027102 avatar Sep 25 '21 08:09 id027102