diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index 94b1692e..58868792 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -72,7 +72,7 @@ var Buffer = Module("Buffer", { dactyl.assert(url instanceof Ci.nsIURL); while (count-- && url.path != "/") - url.path = url.path.replace(/[^\/]+\/*$/, ""); + url.path = url.path.replace(/[^\/]*\/*$/, ""); dactyl.assert(!url.equals(this.documentURI)); dactyl.open(url.spec);