-
Notifications
You must be signed in to change notification settings - Fork 5
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
Some change in core 1.28.0 broke i18n_taxonomy in combination with views #134
Comments
Last successful run - everything was fine: https://github.com/backdrop-contrib/i18n/actions/runs/8130283390 Failing run today: https://github.com/backdrop-contrib/i18n/actions/runs/9873741876 But the test failure in Taxonomy translation (I18nTaxonomyTestCase) is reproducible without that change. Further narrowing it down:
|
This weird approach raises more questions than it answers: #135 (EDIT: this comment is outdated) Why/how did this ever work, anyway? BUT this isn't the solution. Any view can be used to override the path |
Ah, this rings a bell. We were debugging this exact issue and ended up just disabling the default taxonomy view, since it wasn't really needed in this particular case. I'm going to test this. |
@indigoxela maybe it just needs to be:
It is only trying to override that one route. And if a view is providing a taxonomy term route, the route would end in |
I've dug a bit, and this is what I'm seeing: First a bit of background. The way Views overrides a menu route is by basically "hijacking" any menu route definitions created by other modules - in this case So:
We have two problems:
I'll try to figure out an answer for the first part of number 2 above. |
OK, I've found what causing Soooo... not sure we can do anything about this. Hopefully that won't cause other issues with contrib. So, the PR here is fine: it allows the user to access the View. |
One suggestion, though, for the PR. Instead of checking whether the (hard-coded) View is enabled, I would check if the route |
@argiepiano wow, great sleuthing! And an alarming finding IMO. Changing the order of hooks is almost guaranteed to break something in contrib or custom. I can confirm that the item PR updated. |
Since this is a severe problem, I went ahead and merged, next step will be a release. Special thanks to both of you, @argiepiano and @herbdool for your help! 🙏 |
Saw it by accident in an otherwise unrelated PR check.
But it's reproducible locally.
With disabled i18n_taxonomy the taxonomy_term view works as expected, but as soon as one enables the module, the view only throws "access denied" for all term pages. No matter what settings the term or vocab has.
Major break. 😬
It must be a newer core change, as ~ 4 months ago things still worked. Now it's broken.
Last successful test run: 2024-03-03.
There have been lots of commits to core since then... 😞
How to reproduce
Order doesn't matter that much - you can also enable the module first, then enable the view. Result is the same - access denied.
The text was updated successfully, but these errors were encountered: