Closed btylerburton closed 2 years ago
One recommendation was to find/replace {{ site.baseurl }}
with {{ "path" | url }}
, but that has not been tested.
The preliminary results from testing reveals:
BASEURL
environment variable somewhere and it is the correct path.eleventy.js
is pulling in BASEURL
properlyupdates/index.html
to have the right redirect ... but nothing else is working so far 😕 This is mostly done. It just needs a few more eyes and tests to see what's broken if anything.
Fixed a few more bugs... The situations handled:
We should be able to supply a
process.env.BASEURL
to the build that will allow relative links to function correctly. This will remove the 404's from the Federalist build.How to reproduce
site/gsa/datagov-11ty/
Expected behavior
I expect relative URLs to resolve.
Actual behavior
Relative URLs give a 404 due to incorrect pathing.
Sketch