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

Routes for _index.json are appearing as /index/ #341

Closed
jimafisk opened this issue Sep 11, 2024 · 3 comments
Closed

Routes for _index.json are appearing as /index/ #341

jimafisk opened this issue Sep 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jimafisk
Copy link
Member

@jamestagal flagged to me that there is a bug introduced in v0.6.60 that is making _index.json pages appear not as true index files but under an "index" route instead, like: http://localhost:3000/index/

This was introduced because I tried to fix another bug that was only removing the .json extension from :filename route replacement patterns if the replacement pattern was at the end of the URL.

@jimafisk jimafisk added the bug Something isn't working label Sep 11, 2024
jimafisk added a commit that referenced this issue Sep 11, 2024
@jimafisk
Copy link
Member Author

This should be fixed in v0.6.61

Please just let me know if you continue experiencing routing issues! Thanks!

@jimafisk
Copy link
Member Author

This new fix introduces new bugs with special files like _defaults.json:

Can't create props for content/audits/_defaults.json                                                                                                                                          
Can't render htmlComponent for layouts_content_audits_svelte                                                                                                                                  
TypeError: Cannot read properties of undefined (reading 'link')

@jimafisk jimafisk reopened this Sep 12, 2024
jimafisk added a commit that referenced this issue Sep 12, 2024
@jimafisk
Copy link
Member Author

This should be fixed now in v0.6.62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant