Skip to content

Automatic redirect from a path ending with trailing slash to the same path without trailing slash #4782

Closed Answered by metcoder95
cristobal asked this question in General
Discussion options

You must be logged in to vote

Agree with @jsumners that most of this logic should belong to an abstraction layer on top of fastify, like a reverse proxy or API gateway, or any other strategy. Though, I can also understand that some applications might have the desire to have it within the app.

I honestly don't think that it should land on the core, as it sounds like an issue that can cause some maintenance overhead (to not mention the number of issues that can come with it). Having it as a plugin sounds like a good way to go 👍
You can create the plugin and later open a PR for adding it to the community section.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cristobal
Comment options

@cristobal
Comment options

@metcoder95
Comment options

Answer selected by cristobal
@cristobal
Comment options

@cristobal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants