jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 335 forks source link

Removing / from URLs results in 404 #214

Closed wayspurrchen closed 10 years ago

wayspurrchen commented 10 years ago

I navigated to a new page I had created (contents/other/index.md) by going to http://localhost:8080/other and received a 404 error. I then added a / to go to http://localhost:8080/other/, and received the expected page.

You can reproduce this by running wintersmith preview on the basic blog setup and navigating to http://localhost:8080/articles/hello-world/--after removing the / (http://localhost:8080/articles/hello-world), you receive a 404 error.

While not a huge issue, I feel like this is a common enough expectation among power users that navigating to a URL with or without a trailing slash would still deliver the user to the same URL.

jnordberg commented 10 years ago

Fixed in #252