Skip to content

Commit bfd8bd7

Browse files
authored
Merge pull request #120 from netlify/fix-hash-cleaning
Improve hash cleaning regex
2 parents c3592fb + 35b9e01 commit bfd8bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netlify-identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const errorRoute = /error=access_denied&error_description=403/;
149149
const accessTokenRoute = /access_token=/;
150150

151151
function runRoutes() {
152-
const hash = (document.location.hash || "").replace(/^#/, "");
152+
const hash = (document.location.hash || "").replace(/^#\/?/, "");
153153
if (!hash) {
154154
return;
155155
}

0 commit comments

Comments
 (0)