diff --git a/javascript/apps/taiga/src/app/modules/project/feature-kanban/project-feature-kanban.component.ts b/javascript/apps/taiga/src/app/modules/project/feature-kanban/project-feature-kanban.component.ts index 0bad84ed6..cde454f84 100644 --- a/javascript/apps/taiga/src/app/modules/project/feature-kanban/project-feature-kanban.component.ts +++ b/javascript/apps/taiga/src/app/modules/project/feature-kanban/project-feature-kanban.component.ts @@ -142,9 +142,16 @@ export class ProjectFeatureKanbanComponent { return; } - const workflowSlug = - this.route.snapshot.queryParamMap.get('workflow') ?? 'main'; - this.store.dispatch(KanbanActions.initKanban({ workflow: workflowSlug })); + this.route.paramMap.subscribe((params) => { + const workflowSlug = params.get('workflow') ?? 'main'; + this.store.dispatch(KanbanActions.initKanban({ workflow: workflowSlug })); + }); + + // Load on init kanban page. Not on every reload + // const workflowSlug = this.route.snapshot.params['workflow']; + // this.store.dispatch( + // KanbanActions.initKanban({ workflow: workflowSlug }) + // ); this.checkInviteModalStatus(); this.state.connect( diff --git a/javascript/apps/taiga/src/app/modules/project/feature-shell/project-feature-shell-routing.module.ts b/javascript/apps/taiga/src/app/modules/project/feature-shell/project-feature-shell-routing.module.ts index fdb7396b1..1758c0c7d 100644 --- a/javascript/apps/taiga/src/app/modules/project/feature-shell/project-feature-shell-routing.module.ts +++ b/javascript/apps/taiga/src/app/modules/project/feature-shell/project-feature-shell-routing.module.ts @@ -50,6 +50,9 @@ const routes: Routes = [ }, { path: ':slug/kanban/:workflow', + data: { + reuseComponent: false, + }, loadChildren: () => import( '~/app/modules/project/feature-view-setter/project-feature-view-setter.module'