Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): do not allow catchalls to have child routes #6257

Merged
merged 2 commits into from
Aug 1, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

failing case shown in updated test

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR checks that a potential parent is not a catchall before giving it children, which can lead to very unexpected behaviour when present.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working pages πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Jul 29, 2022
@danielroe danielroe requested a review from pi0 July 29, 2022 22:42
@danielroe danielroe self-assigned this Jul 29, 2022
@netlify
Copy link

netlify bot commented Jul 29, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 444da03
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62e4626696a2180008d0e976
😎 Deploy Preview https://deploy-preview-6257--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Eckhardt-D
Copy link
Contributor

@danielroe Not much of a race. Was it? πŸ’― Great seeing this fix after experiencing it live. Well done and thank you

@danielroe
Copy link
Member Author

@Eckhardt-D I'm so sorry, this annoyed me so much I couldn't wait. πŸ™ˆ

@pi0 pi0 merged commit 96cfe01 into main Aug 1, 2022
@pi0 pi0 deleted the fix/catchall-children branch August 1, 2022 07:51
@pi0 pi0 mentioned this pull request Aug 5, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage pages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants