diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index 62c6945..bf04bcf 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -10,6 +10,7 @@ import emitter from "@/event-bus" import { Settings } from "luxon" import { useAuthStore } from '@hotwax/dxp-components' import { resetConfig } from '@/adapter' +import router from '@/router' import { getServerPermissionsFromRules, prepareAppPermissions, resetPermissions, setPermissions } from "@/authorization" const actions: ActionTree = { @@ -70,6 +71,11 @@ const actions: ActionTree = { commit(types.USER_PERMISSIONS_UPDATED, appPermissions); this.dispatch('util/fetchOrganizationPartyId'); emitter.emit("dismissLoader") + + const productStoreId = router.currentRoute.value.query.productStoreId + if(productStoreId) { + return `/product-store-details/${productStoreId}`; + } } catch (err: any) { emitter.emit("dismissLoader") showToast(translate(err));