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 Ensure no admin routed links are affected by versioning #481

Merged

Conversation

GuySartorelli
Copy link
Member

This code was originally introduced in #173 and is intended to avoid adding stage params to any admin/* routed URL (which used to be theoretically restricted to LeftAndMain subclasses).

Issue

Comment on lines -75 to +82
$liveClientConfig = $controller->getClientConfig();
$liveClientConfig = $controller->getCombinedClientConfig();
Copy link
Member Author

@GuySartorelli GuySartorelli Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using getCombinedClientConfig instead of getClientConfig to expand the breadth of the test. This should have been picked up back in silverstripe/silverstripe-admin#1761 but wasn't because the test wasn't looking wide enough.

Note this expansion is also why we now need a request with a session above.

@emteknetnz emteknetnz merged commit ed42fa1 into silverstripe:3 Nov 19, 2024
8 checks passed
@emteknetnz emteknetnz deleted the pulls/3/dont-update-admin-links branch November 19, 2024 04:45
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.

2 participants