-
Notifications
You must be signed in to change notification settings - Fork 1k
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
getDuplicateRoutes: Ignore redirects and other unnamed routes #7564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah apologies for not considering this at the time, the example routes I used to create this didn't consider these cases.
I was thinking I'd add duplicate redirects detection too (two redirects from the same path) and duplicate notfound pages
Don't see why we wouldn't want this 👍
16 replays were recorded for 9af280a. 16 Passed
requireAuth graphql checks
|
e688e7a
to
3eb2f4e
Compare
I didn't review the code but I'd prefer this solution as well, I wouldn't want to have to make users name the |
Let’s go with this Tobbe! Only consideration is, can you/should you be able to navigate to the not found page programmatically?
|
Routes without names, like redirects and the
notfound
route should not be considered duplicate routesThis PR solves https://community.redwoodjs.com/t/redirect-from-splash-screen/4552. #7556 also solves that issue, but in another way. @Josh-Walker-GM, you wrote the duplicate route detection. What do you think?
When we've agreed on what solution to go for here I was thinking I'd add duplicate redirects detection too (two redirects from the same path) and duplicate
notfound
pages.