diff --git a/common/content/browser.js b/common/content/browser.js index 6ceef9bf..f5967367 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -18,7 +18,7 @@ var Browser = Module("browser", { dactyl.assert(url instanceof Ci.nsIURL); while (count-- && url.path != "/") - url.path = url.path.replace(/[^\/]+\/?$/, ""); + url.path = url.path.replace(/[^\/]+\/*$/, ""); dactyl.assert(url.spec != buffer.URL); dactyl.open(url.spec);