align v1.3.0 qwith current main #16
1 changed files with 6 additions and 4 deletions
|
|
@ -77,8 +77,8 @@ class MihGoRouter {
|
||||||
"${MihGoRouterPaths.mihAuthentication}/${MihGoRouterPaths.forgotPassword}",
|
"${MihGoRouterPaths.mihAuthentication}/${MihGoRouterPaths.forgotPassword}",
|
||||||
MihGoRouterPaths.resetPassword,
|
MihGoRouterPaths.resetPassword,
|
||||||
"/${MihGoRouterPaths.aboutMih}",
|
"/${MihGoRouterPaths.aboutMih}",
|
||||||
"/${MihGoRouterPaths.businessProfileView}",
|
"/${MihGoRouterPaths.businessProfileView}/:business_id",
|
||||||
"/${MihGoRouterPaths.mzansiProfileView}",
|
"/${MihGoRouterPaths.mzansiProfileView}/:username",
|
||||||
];
|
];
|
||||||
KenLogger.success(
|
KenLogger.success(
|
||||||
"Redirect Check: ${state.fullPath}, isUserSignedIn: $isUserSignedIn");
|
"Redirect Check: ${state.fullPath}, isUserSignedIn: $isUserSignedIn");
|
||||||
|
|
@ -88,8 +88,10 @@ class MihGoRouter {
|
||||||
if (isUserSignedIn &&
|
if (isUserSignedIn &&
|
||||||
unauthenticatedPaths.contains(state.fullPath) &&
|
unauthenticatedPaths.contains(state.fullPath) &&
|
||||||
state.fullPath != "/${MihGoRouterPaths.aboutMih}" &&
|
state.fullPath != "/${MihGoRouterPaths.aboutMih}" &&
|
||||||
state.fullPath != "/${MihGoRouterPaths.mzansiProfileView}" &&
|
state.fullPath !=
|
||||||
state.fullPath != "/${MihGoRouterPaths.businessProfileView}") {
|
"/${MihGoRouterPaths.mzansiProfileView}/:username" &&
|
||||||
|
state.fullPath !=
|
||||||
|
"/${MihGoRouterPaths.businessProfileView}/:business_id") {
|
||||||
return MihGoRouterPaths.mihHome;
|
return MihGoRouterPaths.mihHome;
|
||||||
}
|
}
|
||||||
return null; // Stay on current route
|
return null; // Stay on current route
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue