Commit cb043599 authored by Dries's avatar Dries
Browse files

- Patch #1425280 by Niklas Fiekas, swentel: no contextual links in node lists...

- Patch #1425280 by Niklas Fiekas, swentel: no contextual links in node lists after a node without contextual links.
parent 45278f51
......@@ -2123,7 +2123,7 @@ function menu_contextual_links($module, $parent_path, $args) {
$links = array();
// Performance: In case a previous invocation for the same parent path did not
// return any links, we immediately return here.
if (isset($path_empty[$parent_path])) {
if (isset($path_empty[$parent_path]) && strpos($parent_path, '%') !== FALSE) {
return $links;
}
// Construct the item-specific parent path.
......
......@@ -3,3 +3,4 @@ description = Provides contextual links to perform actions related to elements o
package = Core
version = VERSION
core = 8.x
files[] = contextual.test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment