Commit f86fda29 authored by webchick's avatar webchick
Browse files

#685790 by casey and Heine: No Overlay when Clean URLs are off.

parent 9eff5d95
......@@ -967,7 +967,7 @@ Drupal.overlay.getPath = function (link, ignorePathFromQueryString) {
if (path.charAt(0) != '/') {
path = '/' + path;
}
path = path.replace(new RegExp(Drupal.settings.basePath), '');
path = path.replace(new RegExp(Drupal.settings.basePath + "(?:index.php)?"), '');
if (path == '' && !ignorePathFromQueryString) {
// If the path appears empty, it might mean the path is represented in the
// query string (clean URLs are not used).
......
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