minor change

This commit is contained in:
Niels Lyngsø
2023-07-06 12:34:21 +02:00
parent 7505959997
commit d0be5e8e29

View File

@@ -30,7 +30,7 @@ export class UmbWorkspaceIsNewRedirectController extends UmbBaseController {
if (router && id) {
const routerPath = router.absoluteRouterPath;
if (routerPath) {
const newPath = createRoutePathBuilder(ensurePathEndsWithSlash(basePath) + 'edit/:id')({ id });
const newPath = createRoutePathBuilder(ensurePathEndsWithSlash(routerPath) + 'edit/:id')({ id });
window.history.pushState({}, '', newPath);
this.destroy();