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

Add support for not encoding slashes in wildcard last parameter #500

Merged
merged 5 commits into from
Jan 28, 2022

Conversation

bakerkretzmar
Copy link
Collaborator

Laravel allows optionally not encoding slashes in the last route parameter by specifying a wildcard regex pattern (https://laravel.com/docs/8.x/routing#parameters-encoded-forward-slashes), but Ziggy didn't know about these 'wheres' and would always encode everything.

This PR updates Ziggy to skip URI-encoding the very last named route parameter if it has a wildcard where condition.

@just-tom I believe this will solve your issue. Closes #490.

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.

Make encoding of params optional
1 participant