fix: stop login redirect loop on clean route
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isLoginPage() {
|
function isLoginPage() {
|
||||||
return /\/html\/login\.html$/.test(window.location.pathname);
|
return /\/(?:html\/login\.html|login)\/?$/.test(window.location.pathname);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loginUrl() {
|
function loginUrl() {
|
||||||
|
|||||||
Reference in New Issue
Block a user