Use mount uri in redirect (#2979)
* Reflect mount uri in the app redirect * use URL constructor
This commit is contained in:
parent
04247d3f95
commit
7a43421af5
1 changed files with 4 additions and 1 deletions
|
@ -112,7 +112,10 @@ export const useAppActions = (
|
||||||
case "updateRouting": {
|
case "updateRouting": {
|
||||||
const { newRoute, actionId } = action.payload;
|
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);
|
window.history.pushState(null, "", appCompletePath + newRoute);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue