Use mount uri in redirect (#2979)

* Reflect mount uri in the app redirect

* use URL constructor
This commit is contained in:
Patryk Andrzejewski 2023-01-16 11:09:24 +01:00 committed by GitHub
parent 04247d3f95
commit 7a43421af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,10 @@ export const useAppActions = (
case "updateRouting": {
const { newRoute, actionId } = action.payload;
const appCompletePath = appPath(encodeURIComponent(appId));
const appCompletePath = new URL(
appPath(encodeURIComponent(appId)),
getAppMountUri(),
).href;
window.history.pushState(null, "", appCompletePath + newRoute);