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

[5.x] If nav:from references an invalid entry, ensure nothing is returned #11464

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

ryanmitchell
Copy link
Contributor

This fix is possibly a breaking change, let me know if you want it to retarget main.

If you pass an invalid entry to nav:from then it currently treats it as if you have not passed anything to from, which feels like incorrect behaviour. Instead it should return nothing.

Closes #11392

@jasonvarga jasonvarga merged commit bb6da47 into statamic:5.x Feb 18, 2025
19 checks passed
@ryanmitchell ryanmitchell deleted the fix/nav-from-invalid branch February 18, 2025 15:36
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.

Navs return everything in cases where nothing should be returned
2 participants