Skip to content
This repository was 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
pi0 merged 2 commits intomainfrom
fix/catchall-children
Aug 1, 2022
Merged

fix(nuxt): do not allow catchalls to have child routes#6257
pi0 merged 2 commits intomainfrom
fix/catchall-children

Conversation

@danielroe
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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