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

Start - Redirect paths containing a trailing slash (e.g. /foo/ -> /foo) #3798

Open
jasongitmail opened this issue Mar 18, 2025 · 0 comments
Open

Comments

@jasongitmail
Copy link

Which project does this relate to?

Start

Describe the bug

For SEO, so only one valid, canonical path returns 200.

Your Example Website or App

https://tanstack-start.pages.dev/posts/

Steps to Reproduce the Bug or Issue

Create /routes/about.jsx and visit /about/ using dev server or production build. It will return the path, but should redirect to /about.

Example here (but I don't know their TanStack-related versions bc this one isn't my app, but it's shareable):
https://tanstack-start.pages.dev/posts/

Expected behavior

.

Screenshots or Videos

No response

Platform

Versions for my app, which shows this behavior too.

    "@tanstack/react-query": "^5.68.0",
    "@tanstack/react-router": "^1.114.23",
    "@tanstack/react-router-with-query": "^1.114.23",
    "@tanstack/react-start": "^1.114.23",

Additional context

No response

@jasongitmail jasongitmail changed the title Start - Redirect paths containing a trailing slash (e.g. foo/ -> foo) Start - Redirect paths containing a trailing slash (e.g. /foo/ -> /foo) Mar 18, 2025
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

No branches or pull requests

1 participant