Merge pull request 'fix deep link for unsigned in user' (#42) from v.1.2.7 into main
Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user