Skip to content

Commit 961f511

Browse files
authored
fix: fix deleted workspace banner 404 (coder#2386)
- When a workspace is deleted the user is nudged to create a new workspace. The page to which they are routed 404s. This PR simply routes them to the /templates page where they can pick a template for their new workspace.
1 parent 45eb1b4 commit 961f511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/components/Workspace/Workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const Workspace: FC<WorkspaceProps> = ({
7777
workspace={workspace}
7878
/>
7979

80-
<WorkspaceDeletedBanner workspace={workspace} handleClick={() => navigate(`/workspaces/new`)} />
80+
<WorkspaceDeletedBanner workspace={workspace} handleClick={() => navigate(`/templates`)} />
8181

8282
<WorkspaceStats workspace={workspace} />
8383

0 commit comments

Comments
 (0)