Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to remove trailing slashes to router #1579

Closed
leore opened this issue Apr 18, 2014 · 2 comments
Closed

Add option to remove trailing slashes to router #1579

leore opened this issue Apr 18, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@leore
Copy link

@leore leore commented Apr 18, 2014

Would be great to have an options like isCaseSensitive but call it stripTrailingSlashes to the router.

If this option is set to true than it can basically do something similar to this:

server.ext('onRequest', function (request, next) {
request.path = request.path.replace(/\/$/, '');
next();
});
@blakmatrix
Copy link
Contributor

@blakmatrix blakmatrix commented Apr 24, 2014

👍 for option to auto-remove trailing slash

@lock
Copy link

@lock lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants