Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2013 at 05:00 UTC
Updated:
27 Jan 2017 at 17:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettThe query in question is this:
Comment #2
dawehnerWhat about something like
Comment #3
wim leers#914382: Contextual links incompatible with render cache didn't touch
menu_contextual_links():)Comment #4
tim.plunkettI spent a good deal of time with this, and I'm not sure if it's possible with a single query.
What we want are all local tasks, and the parent task only when it has a default local task, and only when only none of the local tasks have MENU_CONTEXT_NONE or MENU_CONTEXT_PAGE.
But all parents have MENU_CONTEXT_NONE, and it's hard to know if they have a child MENU_DEFAULT_LOCAL_TASK.
So, this is easier.
However, this is going to break a lot of tests, but all of the ones that break are violating #1995620: [policy, no patch] Document how to handle routes for MENU_DEFAULT_LOCAL_TASK anyway, so we can just fix them.
Comment #5
tim.plunkettActually, this shouldn't be a big problem. We don't need to change all the asserts, just the contextual link ones.
Comment #6
chx commentedThe default local task path is never used AFAIK so if it is used then it's a bug. I wonder whether this is backportable too.
Comment #7
alexpottCommitted ace3459 and pushed to 8.x. Thanks!
Let the backport discussion begin :)
Comment #8
dawehnerNice!
Comment #9
dawehnerI'm to slow.
Comment #10
Crell commentedNo WSCCI tag needed for D7.
Comment #11
bhide.nishad commentedComment #14
bhide.nishad commented