sevago-sso-fe 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6990,6 +6990,10 @@ const resetCurrentAccessToBase = toolkit.createAsyncThunk(
|
|
|
6990
6990
|
"RESET_CURRENT_ACCESS_TO_BASE",
|
|
6991
6991
|
(current_access) => {
|
|
6992
6992
|
const basePath = current_access.split("/")[0];
|
|
6993
|
+
const { origin: origin2, pathname } = window.location;
|
|
6994
|
+
const currentBase = pathname.split("/")[1];
|
|
6995
|
+
if (currentBase === basePath) return basePath;
|
|
6996
|
+
window.history.pushState({}, "", `${origin2}/${basePath}`);
|
|
6993
6997
|
return basePath;
|
|
6994
6998
|
}
|
|
6995
6999
|
);
|