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

Template links missing pathPrefix if they don't end with '/'

Open Caellian opened this issue 11 months ago • 1 comments

I have my nav in _include dir. I can access all pages fine, but links in njk template aren't prefixed correctly.

The same links are properly prefixed in files generated with the build command.

This makes it very annoying to use the dev server because I have to manually type in links from templates in _include as it behaves differently than the build.

For reference, here's my config.

Caellian avatar Mar 12 '24 13:03 Caellian

Happens only when paths don't end with a forward slash.

I know that dev-server requires paths to end with '/', but this shouldn't affect prefixing as any path that's an absolute path or relative (doesn't specify a different host) should be prefixed.

Caellian avatar Mar 12 '24 19:03 Caellian

I believe this is a duplicate of #65, shipped with Dev Server v2.0.0.

zachleat avatar Jun 04 '24 16:06 zachleat