Allow relative URLs and no trailing `index.html`
I'm trying to achieve relative URLs (don't want to hardcode the domain) but also want links to point to folders, not index.html. For example, I want this output:
<a href="2020/03/example/">Example post</a>
but I'm getting this with Allow offline usage checked:
<a href="2020/03/example/index.html">Example post</a>
"Offline usage" is not a great switch in my case – I'll have a webserver in front of the exported folder but at the same time, I also don't want to hardcode the domain.
A workaround is to export for offline and then search&replace index.html" with " (the quote is important, for example, I had the text "index.html" used in some of my blog posts).
Still quite fragile though.
Hi @borekb - offline mode is gone from core in V7 - set to come back in a future addon.
Similar with the site root relative URL rewriting, it won't be in core, but will be in it's own addon.
Both of these likely fall under scope of Advanced HTML Processor, which there isn't a build ready for testing yet.
The ability to do site-root relative URLs is already in place in the code, but the offline mode URLs will get a rethink when I get back to that.
Sounds like you've found the best creative solution for what you want in V6 for now!
Yeah, the export otherwise worked brilliantly so I was keen to find a solution rather than trying other exporters 😄. Great job! & thanks for the info.
Can we at least just enter / as the domain so that it maps to the root instead of the domain?
Testing locally, and on our stage server is a complete pain, it literally took an hour to generate and download all the different versions required.
Right now I've had to script cloudflare workers in order to rewrite the links, buttons and scripts myself.
@dmeagor - I understand it's extremely frustrating. Please hold tight for the upcoming add-on which allows proper URL rewriting. Glad you could workaround in Workers for now, I appreciate not all users will be able to do that.
Any movement on allowing relative urls?