I have a head scratcher over here that I suspect one of you fine folks have likely already run into and solved.
Synopsis
Is there a way to set the CSS in Blocs to be absolute instead of relative?
For example instead of:
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css?5691">
…use this instead (.. removed):
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css?5691">
Background
I’ve created a 404 in Blocs and in nginx have set things up to point to it. Everything works great except once I start going into subfolders in my site hierarchy. For example something like:
https://mysite.com/support/somethingThatDoesNotExist
…comes back with the 404 file being loaded but due to the internal CSS being relative, the style sheets never load. I could of course do a rewrite in nginx but I’m looking for a Blocs specific solution.
I tried adding this to the header:
<base href="https://mysite.com/">
…but unfortunately Blocs adds this after the CSS lines. Things do work if I add this to the Page - Before code section in Blocs, but this is bad HTML form.