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

merge-requests/26/head
Angie Byron 2010-03-27 05:47:08 +00:00
parent 9eff5d9588
commit f86fda29a3
1 changed files with 1 additions and 1 deletions

View File

@ -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).