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

fix(#5665): rewritten routes get ignored by dynamic and catchAll routes #6101

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

fprl
Copy link
Contributor

@fprl fprl commented Apr 7, 2024

Overview

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos

Description

Fixes #5665. As the rewriteRoutes were pushed at the end of the routes array at build time, when the loadRoute (runtime) got called and iterate through all the routes, the matchRoute function matched any dynamic or catchAll route first (because they were before).

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • [-] Added new tests to cover the fix / functionality ---> Not necessary?

Copy link

netlify bot commented Apr 7, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5f2f12f

@fprl fprl changed the title Issue 5665 rewritten routes fix(#5665): rewritten routes get ignored by dynamic and catchAll routes Apr 7, 2024
@wmertens wmertens enabled auto-merge (squash) April 9, 2024 06:23
@wmertens
Copy link
Member

wmertens commented Apr 9, 2024

Excellent, thanks!

@wmertens wmertens merged commit f5ba0d5 into QwikDev:main Apr 9, 2024
21 of 23 checks passed
@fprl fprl deleted the issue-5665-rewritten-routes branch April 9, 2024 06:46
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.

[🐞] translated routes from rewriteRoutes get ignored for [...catchall] route in same folder
2 participants