From f4237fffe680e0c8c0cbffc4a2d3a750d14828b2 Mon Sep 17 00:00:00 2001 From: Nick Meinhold Date: Sun, 19 Apr 2026 06:41:04 +1000 Subject: [PATCH] fix: redirect to boards list after archiving/unarchiving a board (#459) Previously, archiving or unarchiving a board left the user on the (now archived/unarchived) board view with no clear navigation path. This redirects to /boards after either action, matching the existing behaviour of delete and move operations. Co-authored-by: Claude Opus 4.6 (1M context) --- apps/web/src/views/board/components/BoardDropdown.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/views/board/components/BoardDropdown.tsx b/apps/web/src/views/board/components/BoardDropdown.tsx index e9f34a51..eea42440 100644 --- a/apps/web/src/views/board/components/BoardDropdown.tsx +++ b/apps/web/src/views/board/components/BoardDropdown.tsx @@ -1,3 +1,4 @@ +import { useRouter } from "next/router"; import { t } from "@lingui/core/macro"; import { HiEllipsisHorizontal, @@ -29,6 +30,7 @@ export default function BoardDropdown({ isFavorite?: boolean; boardName?: string; }) { + const router = useRouter(); const { openModal } = useModal(); const { showPopup } = usePopup(); const { canEditBoard, canDeleteBoard, canCreateBoard, canArchiveBoard } = @@ -47,6 +49,7 @@ export default function BoardDropdown({ : t`The board has been unarchived.`, icon: "success", }); + void router.push(`/boards`); } else if (variables.favorite !== undefined) { showPopup({ header: variables.favorite