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

feat: normalise trailing slashes #448

Closed
wants to merge 2 commits into from

Conversation

afzalsayed96
Copy link

@afzalsayed96 afzalsayed96 commented Jun 16, 2020

Since #249 was closed. This is a much needed feature. Next.js is working on this here: vercel/next.js#13333 but it seems to be taking long. It would be really nice if we can support this in the component.

Details

If a page exists on example.com/about then visiting example.com/about/ returns 404 Not found error. This PR normalises paths with trailing slashes such that example.com/about/ resolves to example.com/about.

@danielcondemarin
Copy link
Contributor

@afzalsayed96 The aim of this project is to follow closely Next.js server features, especially routing. Departing from that core idea it's something I want to avoid.

Feel free to reopen once the PR referenced is merged 👍

@stephanschubert
Copy link

stephanschubert commented Jul 17, 2020

@afzalsayed96 @danielcondemarin The PR vercel/next.js#13333 has been merged. Could you re-open please?

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

Successfully merging this pull request may close these issues.

3 participants