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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS routes in multilingual setup not working properly. #2672
Comments
@cmfcmf I'm really hoping you can handle this asap after your exams are complete. In order to reproduce, you must have more than one locale installed The result is any ajax route will not work unless they have been specified to have the i18n flag set to false. While this workaround is ok in some situations (and used in the core several times already), it doesn't work if you actually want localized content from the ajax method. plus it is cumbersome. I had bumped into this issue several times as I was working on Blocks and other core items but didn't realize the real problem until now. |
refs #1985 |
@cmfcmf It would be great if you could look into this today or tomorrow. |
@cmfcmf can you please look into this... |
I've just been testing this and can no longer reproduce this behavior. I'm guessing it was fixed by either upgrades to the vendor (friendsofsymfony/jsrouting-bundle) or by other core changes since the original ticket. |
After writing the last comment I went back and actually tested the method I was originally posting about (block preview from the block list) and found that it didn't work! I discovered that despite the jQuery documentation:
That the request method was actually POST (but no data provided) and that is why my route wasn't working. by eliminating the |
This is a Zikula "feature": https://github.com/zikula/core/blob/1.4/src/javascript/jquery_config.js#L26 |
Page not found. 馃槮
The relevant routes from
routing
script that is generated by controllerThe text was updated successfully, but these errors were encountered: