summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/menu.inc2
-rw-r--r--modules/contextual/contextual.info1
2 files changed, 2 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 52a33a5b0..fef40bb73 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -2144,7 +2144,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.
diff --git a/modules/contextual/contextual.info b/modules/contextual/contextual.info
index ffaabaf22..5ebc09809 100644
--- a/modules/contextual/contextual.info
+++ b/modules/contextual/contextual.info
@@ -3,3 +3,4 @@ description = Provides contextual links to perform actions related to elements o
package = Core
version = VERSION
core = 7.x
+files[] = contextual.test