Netlify dev and Pretty URLs

Hello,

so I’m making the static website (pure js, HTML, CSS). When I’m trying to serve this site with “netlify dev”, homepage works fine (i define base directory), but other links won’t work at all. I finger out that for links I’m using something like this: /services, instead of /services.html. The reason I’m using this is because I have enabled Pretty URLs inside the dashboard, but netlify dev, don’t see that and then cant serve that site (when adding .html in every URL that giving me forbidden just works after that). Any way to say netlify dev to use the same redirection for pretty urls?

I don’t think we have that implemented yet, so I’d add a feature request here: https://github.com/netlify/netlify-dev-plugin/issues

Some site frameworks like Jekyll have their own Pretty URL’s feature that should still work in dev, but be warned that the implementation is likely NOT compatible with our own pretty URL’s (enabling both has led to problems for other customers).

1 Like

i agree that we dont have this implemented yet. thanks for reporting!

1 Like