Index: modules/overlay/overlay-parent.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay-parent.js,v
retrieving revision 1.1
diff -u -r1.1 overlay-parent.js
--- modules/overlay/overlay-parent.js	2 Dec 2009 07:28:22 -0000	1.1
+++ modules/overlay/overlay-parent.js	4 Dec 2009 01:28:40 -0000
@@ -563,7 +563,12 @@ Drupal.overlay.isAdminLink = function (url) {
   var self = this;
   // Create a native Link object, so we can use its object methods.
   var link = $(url.link(url)).get(0);
-  var path = link.pathname.replace(new RegExp(Drupal.settings.basePath), '');
+  var path = link.pathname;
+  // Ensure a leading slash on the path, omitted in some browsers.
+  if (path.substr(0, 1) != '/') {
+    path = '/' + path;
+  }
+  path = path.replace(new RegExp(Drupal.settings.basePath), '');
   if (path == '') {
     // If the path appears empty, it might mean the path is represented in the
     // query string (clean URLs are not used).
