Skip to content

Commit e3e4f14

Browse files
authored
Merge pull request #618 from mercedes-benz/RemoveHardcodedSubPath
Replace hardcoded subpath with window.location.pathname
2 parents 479276f + e86e422 commit e3e4f14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/application/ApplicationThunks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const createConnectionThunk =
124124
query,
125125
parameters,
126126
1,
127-
() => {},
127+
() => { },
128128
(records) => validateConnection(records)
129129
);
130130
} catch (e) {
@@ -254,7 +254,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
254254
dispatch(onConfirmLoadSharedDashboardThunk());
255255
}
256256

257-
window.history.pushState({}, document.title, '/');
257+
window.history.pushState({}, document.title, window.location.pathname);
258258
} else {
259259
dispatch(setConnectionModalOpen(false));
260260
// dispatch(setWelcomeScreenOpen(false));
@@ -273,7 +273,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
273273
false
274274
)
275275
);
276-
window.history.pushState({}, document.title, '/');
276+
window.history.pushState({}, document.title, window.location.pathname);
277277
}
278278
} else {
279279
// dispatch(resetShareDetails());

0 commit comments

Comments
 (0)