diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index c1d369896428..ffbfa7bef1c7 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -31,9 +31,8 @@ export class WorkspacesPlugin implements Plugin<{}, {}> { /** * Patch workspace id into path */ - const currentWorkspaceId = workspaceId; newUrl.pathname = this.core?.http.basePath.remove(newUrl.pathname) || ''; - if (currentWorkspaceId) { + if (workspaceId) { newUrl.pathname = `${this.core?.http.basePath.serverBasePath || ''}/w/${workspaceId}${ newUrl.pathname }`;