Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
content_translation.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jul 2014 at 09:16 UTC
Updated:
1 Sep 2014 at 20:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yesct commentedFor example, try custom menu links.
Comment #2
yesct commentedthis was fixed in part 4 #2301317: MenuLinkNG part4: Conversion
with
Comment #3
yesct commentedthat might have been adding the wrong relate issue.
maybe meant to add #2276387: Translate routes should properly inherit admin path use from edit route
Comment #4
dawehnerThis was actually the wrong fix as it fixed the symptoms, but not the reason.
Comment #5
yesct commentedok. when we fix it the correct way, we should check to see if the similar fix for nodes in 2276387 can be undone also.
Comment #6
yesct commentedComment #7
gábor hojtsyShortcuts have the same problem, see #2320037: Non-fieldable entities (with only base fields) cannot be configured translatable, eg. shortcuts which includes the same workaround that is in menu_link_content.
Comment #8
gábor hojtsyDoes any of the existing ones have tests, besides node translation pages?
Comment #9
gábor hojtsyComment #10
gábor hojtsyDuh, not going to work. Instead of service priorities, we should set event priorities. This works.
Comment #11
gábor hojtsyNow with tests. The interdiff is the TEST ONLY patch. It should not fail since we have the hardcoded admin page designation in the route. Once we remove that, but without fixing the priorities, it will not work (see TEST ONLY WILL FAIL patch). The fix and test overall is in the 11 patch.
Comment #13
penyaskitoMakes sense to me.
Comment #14
alexpottHow about
-210so there is a gap between AdminRouteSubscriber and ContentTranslationRouteSubscriber?Comment #15
gábor hojtsySure thing. The only side effect is that requires the param converter route subscriber to be changed as well since otherwise they are the same priority and the params are not yet converted when access tries to deal with them (content translation comes before paramconverter in the alphabet).
Comment #16
gábor hojtsyBetter said, the content translation routes would not have param converters applied properly if the content translation routes are added after the param converter altering is done. (This shows in severe test fails if we don't change the param converter priority).
Comment #17
gábor hojtsyAdding blocker tag since this postpones #2320037: Non-fieldable entities (with only base fields) cannot be configured translatable, eg. shortcuts.
Comment #20
gábor hojtsyWas random test fail.
Comment #21
alexpottCommitted 3254a1a and pushed to 8.0.x. Thanks!
Comment #23
gábor hojtsyYay, thanks!
Comment #24
dawehnerGreat work!