cmawhorter / fancy

1 stars 2 forks source link

Static assets with paths that collide with routes redirect #26

Open cmawhorter opened 8 years ago

cmawhorter commented 8 years ago

If a static asset path has a name that collides with a route (e.g. ..../assets/blog/ and route /blog), it will cause express to always redirect to a trailing slash.

The dependency on express' static asset handler should be dropped and a custom middleware should be built.