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.esm.js
CHANGED
|
@@ -6972,6 +6972,10 @@ const resetCurrentAccessToBase = createAsyncThunk(
|
|
|
6972
6972
|
"RESET_CURRENT_ACCESS_TO_BASE",
|
|
6973
6973
|
(current_access) => {
|
|
6974
6974
|
const basePath = current_access.split("/")[0];
|
|
6975
|
+
const { origin: origin2, pathname } = window.location;
|
|
6976
|
+
const currentBase = pathname.split("/")[1];
|
|
6977
|
+
if (currentBase === basePath) return basePath;
|
|
6978
|
+
window.history.pushState({}, "", `${origin2}/${basePath}`);
|
|
6975
6979
|
return basePath;
|
|
6976
6980
|
}
|
|
6977
6981
|
);
|