align v1.3.0 qwith current main #16

Merged
Yasien Meth merged 52 commits from main into v.1.3.0 2026-06-19 09:46:00 +02:00
Showing only changes of commit e59ebafb30 - Show all commits

View file

@ -77,8 +77,8 @@ class MihGoRouter {
"${MihGoRouterPaths.mihAuthentication}/${MihGoRouterPaths.forgotPassword}",
MihGoRouterPaths.resetPassword,
"/${MihGoRouterPaths.aboutMih}",
"/${MihGoRouterPaths.businessProfileView}",
"/${MihGoRouterPaths.mzansiProfileView}",
"/${MihGoRouterPaths.businessProfileView}/:business_id",
"/${MihGoRouterPaths.mzansiProfileView}/:username",
];
KenLogger.success(
"Redirect Check: ${state.fullPath}, isUserSignedIn: $isUserSignedIn");
@ -88,8 +88,10 @@ class MihGoRouter {
if (isUserSignedIn &&
unauthenticatedPaths.contains(state.fullPath) &&
state.fullPath != "/${MihGoRouterPaths.aboutMih}" &&
state.fullPath != "/${MihGoRouterPaths.mzansiProfileView}" &&
state.fullPath != "/${MihGoRouterPaths.businessProfileView}") {
state.fullPath !=
"/${MihGoRouterPaths.mzansiProfileView}/:username" &&
state.fullPath !=
"/${MihGoRouterPaths.businessProfileView}/:business_id") {
return MihGoRouterPaths.mihHome;
}
return null; // Stay on current route