summaryrefslogtreecommitdiff
path: root/modules/shortcut/shortcut.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shortcut/shortcut.module')
-rw-r--r--modules/shortcut/shortcut.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module
index 71284bb84..2f6db0ad3 100644
--- a/modules/shortcut/shortcut.module
+++ b/modules/shortcut/shortcut.module
@@ -617,8 +617,8 @@ function shortcut_valid_link($path) {
if ($path != $normal_path) {
$path = $normal_path;
}
- // Only accept links that correspond to valid paths on the site itself.
- return !url_is_external($path) && menu_get_item($path);
+ // An empty path is valid too and will be converted to <front>.
+ return (!url_is_external($path) && menu_get_item($path)) || empty($path) || $path == '<front>';
}
/**