diff --git a/packages/ui/src/routes/[projectId]/navigation/ProjectsPopup.svelte b/packages/ui/src/routes/[projectId]/navigation/ProjectsPopup.svelte index 80729f2cb..fbb715ea9 100644 --- a/packages/ui/src/routes/[projectId]/navigation/ProjectsPopup.svelte +++ b/packages/ui/src/routes/[projectId]/navigation/ProjectsPopup.svelte @@ -16,10 +16,6 @@ export function hide() { hidden = true; } - - function changeProject(projectId: string) { - goto(location.href.replace($page.params.projectId, projectId)); - } {#if !hidden} @@ -33,7 +29,7 @@ icon={selected ? 'tick' : undefined} on:click={() => { hide(); - changeProject(project.id); + goto(`/${project.id}/board`); }} > {project.title}