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

Update LanguageRedirectMiddleware.php #55

Closed
wants to merge 6 commits into from

Conversation

bigahuna
Copy link

@bigahuna bigahuna commented Apr 29, 2024

Replace reading frontend typoscript settings with BackendConfigurationManager in LanguageRedirectMiddleware. This PR replaces reading frontend typoscript with ConfigurationManager instad of BackendConfigurationManager

Regards
Mike

Reading typoscript settings like this

[traverse(page, "uid") in [968,967,202,965,969]]
    config.tx_locate = 0
[ELSE]
    config.tx_locate = 1
[GLOBAL]

does not work reliable with BackendConfigurationManager. If we use the ConfigurationManager to read frontend typoscript config, it works as expected.

As far as I see, the BackendConfigurationManager is not really supposed to read frontend typoscript code anyway. See comment at the start of the class:

/*
 * Load TypoScript of a page in backend mode.
 *
 * Extbase Backend modules can be configured with Frontend TypoScript. This is of course a very
 * bad thing, but it is how it is ^^ (we'll get rid of this at some point, promised!)
*/
@bigahuna bigahuna closed this May 3, 2024
@bigahuna
Copy link
Author

bigahuna commented May 3, 2024

I'm sorry, I committed the wrong code :( Will open another PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant