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

Bugfix: prevent double prefix in route cache #69

Merged
merged 3 commits into from
May 18, 2022

Conversation

sc-delanoderooij
Copy link

@sc-delanoderooij sc-delanoderooij commented Apr 29, 2022

Fixes #68

Routes that are registered by Laravel's route registrar don't contain the prefix in the cached routes file and the ones by the package do.

This MR removes the prefix from the route's action payload after registering so once it's being serialized there's no referral left to the original prefix. The URI is at that point in time already prefixed.

I looked into your test and can't seem to find any point where you test cached routes so I'm not really sure how to write a test for this and if it even should be tested in the package since its framework behavior.

@sc-delanoderooij sc-delanoderooij changed the base branch from v3 to v2 May 2, 2022 19:08
@chinleung chinleung merged commit 5865c3b into chinleung:v2 May 18, 2022
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.

Prefixed routes are malformed after route:cache command
2 participants