eleventy-dev-server
eleventy-dev-server copied to clipboard
Template links missing pathPrefix if they don't end with '/'
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.
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.
I believe this is a duplicate of #65, shipped with Dev Server v2.0.0.