parent
174c4ae749
commit
8a7e2bd8e4
|
|
@ -108,9 +108,9 @@ function setupAccessGuard(router: Router) {
|
||||||
let redirectPath: string;
|
let redirectPath: string;
|
||||||
if (from.query.redirect) {
|
if (from.query.redirect) {
|
||||||
redirectPath = from.query.redirect as string;
|
redirectPath = from.query.redirect as string;
|
||||||
} else if (to.path === preferences.app.defaultHomePath) {
|
} else if (to.fullPath === preferences.app.defaultHomePath) {
|
||||||
redirectPath = preferences.app.defaultHomePath;
|
redirectPath = preferences.app.defaultHomePath;
|
||||||
} else if (userInfo.homePath && to.path === userInfo.homePath) {
|
} else if (userInfo.homePath && to.fullPath === userInfo.homePath) {
|
||||||
redirectPath = userInfo.homePath;
|
redirectPath = userInfo.homePath;
|
||||||
} else {
|
} else {
|
||||||
redirectPath = to.fullPath;
|
redirectPath = to.fullPath;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue