-
Notifications
You must be signed in to change notification settings - Fork 60
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
Single letter folder named 't' breaks the routes #188
Comments
I've narrowed this down. When having two sibling routes under a route group It looks like this is the code causing an issue:
in packages/generouted/src/core.ts And note the problem exists for 'nt 'unt' 'ount' 'count' and 'ccount' |
Thanks for resolving! |
Describe the Bug
I wanted a route like /t/:token in my app. However, using the letter 't' for a folder seems to break things. Using the letter 'a' doesn't break things, and 'to' works. !
Here is the routes generated with 't':
Note that 't' doesn't appear in the children array and the account path has '(app)/t/_layout' as it's id.
Now if I rename the folder to 'a':
Now 'a' appears as one of the children and the account path id is '(app)/account/_layout' as expected.
Generouted Version
1.19.9
Your Example Website or App or Reproduction
N/A
Steps to Reproduce the Bug or Issue
Expected Behavior
To be able to use /t/ as a path
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: