absURL inserts an absolute URL in the form of http://localhost:1313/path/to/style.css which makes it impossible to develop on a non-localhost hostname. For example if I'm using ngrok to serve my localhost to a domain like https://8863fbca4.grok.io/ resources linked with absURL will still incorrectly reference localhost. Using relURL removes the hostname from the links. Relative links generally make it easier to work with a website during development.
What
Replace uses of
absURL
withrelURL
.Why
absURL
inserts an absolute URL in the form ofhttp://localhost:1313/path/to/style.css
which makes it impossible to develop on a non-localhost hostname. For example if I'm usingngrok
to serve my localhost to a domain likehttps://8863fbca4.grok.io/
resources linked withabsURL
will still incorrectly referencelocalhost
. UsingrelURL
removes the hostname from the links. Relative links generally make it easier to work with a website during development.