Skip to content

Commit a460180

Browse files
committed
Fix path match when no path is specified
1 parent 2ad18c9 commit a460180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Url {
5151
}
5252

5353
isPathMatch(path) {
54-
var result = path === this.path || path.indexOf(this.path) === 0;
54+
var result = this.path === '' || path === this.path || path.indexOf(this.path) === 0;
5555

5656
return result;
5757
}

0 commit comments

Comments
 (0)