grav-plugin-blackhole icon indicating copy to clipboard operation
grav-plugin-blackhole copied to clipboard

Navigation links not rewritten

Open jlounds opened this issue 2 years ago • 1 comments

Hello - I am super excited about this plugin. Thanks for making it!

I have it successfully running from the command line and generating all of the static files and folders, but it is not changing the links.

I'm running Grav in a sub-folder (e.g., sitename.com/gravcms) and using the command

php bin/plugin blackhole generate https://sitename.com/gravcms/ --output-url https://sitename.com/ --output-path ../ --assets --verbose-mode --force

But when I look at the HTML it saves, I still have things like this:

<a href="/gravcms/">Home</a>
<a href="/gravcms/page-two">Page Two</a>

Am I doing something wrong, or is there a bug? Thank you!

jlounds avatar Sep 01 '22 14:09 jlounds

Quick follow-up - it appears the Blackhole plugin does not work properly when Grav in a sub-directory. To work around the issue, I am running it in a sub-domain and its working as expected now.

I guess this has turned into a feature request. :-)

jlounds avatar Sep 02 '22 17:09 jlounds