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

Ensure route bindings only apply to Statamic routes #5775

Conversation

ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Apr 6, 2022

A better approach (replacing #5774)

Check if we are in a Statamic CP or API route before applying bindings.

Fixes: #4108

@jasonvarga
Copy link
Member

Thanks Ryan.

@jasonvarga jasonvarga merged commit 662bc32 into statamic:3.3 May 20, 2022
@ryanmitchell ryanmitchell deleted the chore/remove-route-bindings-outside-statamic branch May 20, 2022 06:39
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.

Route Model Binding Exception
2 participants