eleventy-dev-server
eleventy-dev-server copied to clipboard
Redirects do not respect pathPrefix
Given a pathPrefix = "/abc/"
, the server may redirect path /abc/def
to /def/
. We need to prepend the pathPrefix back for the new location.
We encountered this when debugging an issue on the Eleventy Discord. I put together an MWE:
https://github.com/Aankhen/eleventy-pathprefix-issue
I believe this is a duplicate of #65, which was shipped with Dev Server 2.0