eleventy-dev-server icon indicating copy to clipboard operation
eleventy-dev-server copied to clipboard

Redirects do not respect pathPrefix

Open simonpai opened this issue 2 years ago • 1 comments

Given a pathPrefix = "/abc/", the server may redirect path /abc/def to /def/. We need to prepend the pathPrefix back for the new location.

simonpai avatar Feb 22 '23 10:02 simonpai

We encountered this when debugging an issue on the Eleventy Discord. I put together an MWE:

https://github.com/Aankhen/eleventy-pathprefix-issue

Aankhen avatar May 07 '23 18:05 Aankhen

I believe this is a duplicate of #65, which was shipped with Dev Server 2.0

zachleat avatar Jun 04 '24 16:06 zachleat