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

Fix an edge-case about pretty URLs and cache warm up #6696

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

javiereguiluz
Copy link
Collaborator

Fixes #6680.

Thanks to the debugging information provided in #6680 I could implement this solution.

The first change is that we no longer use Route options but defaults, because defaults are mapped to Request attributes and the options are not available unless you instantiate the Route object, which is not possible in our scenario. This change simplifies code a bit.

The other change, and the real solution of the reported error, is that we know regenerate the admin route cache if we know that the backend uses pretty URLs but the cache doesn't contain the admin routes.

@javiereguiluz javiereguiluz added this to the 4.x milestone Jan 9, 2025
@javiereguiluz javiereguiluz merged commit f813388 into EasyCorp:4.x Jan 9, 2025
12 checks passed
@javiereguiluz javiereguiluz deleted the fix_6680 branch January 9, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AdminContext not provided (null given) after deploy
1 participant