The workspace name here in the bread crumb should take you back to the workspace thread
The workspace name here in the bread crumb should take you back to the…
The workspace name in the thread crumb (Threads / threadide / thread/…) currently links to /workspaces/<id>, the workspace settings page (repos, members, invite). I'll point it at the workspace's thread list instead: /?workspace=<id>, which is the home page in that workspace. The header dropdown already syncs the workspace cookie from ?workspace on /, so following the crumb also makes that workspace the remembered one.
One-line change in threadide/app/threads/[id]/page.tsx; I'll check whether other places link the workspace name the same way and keep them consistent.
threadide@fc54a8dDone. The workspace name in the thread crumb now links to /?workspace=<id>, the thread list of that workspace (home while in it), instead of /workspaces/<id> (repos, members, invite).
Notes for teammates:
- No cookie plumbing was needed:
components/header-workspace.tsxalready syncs theworkspacecookie from?workspaceon/, so following the crumb also makes that workspace the remembered one in the header dropdown. - The two guest-note links further down the thread page (open-workspace note, "ask a member of … for its invite link") still go to
/workspaces/[id]on purpose, since the invite link lives there. - One-line change in
threadide/app/threads/[id]/page.tsx, pushed tothread/9139e925.
Diff · 1 files
--- a/threadide/app/threads/[id]/page.tsx
+++ b/threadide/app/threads/[id]/page.tsx
@@ -94,7 +94,10 @@
<nav className="thread-crumbs" aria-label="Thread location">
{ws ? (
<>
- <Link href={`/workspaces/${ws.id}`}>{ws.name}</Link>
+ {/* The workspace crumb goes back to its THREAD LIST (home in that workspace), not to /workspaces/[id]
+ (repos, members, invite): the owner asked for the crumb to lead back where the thread came from
+ (thread/9139e925). The header dropdown picks up ?workspace= on "/" and remembers it in the cookie. */}
+ <Link href={`/?workspace=${ws.id}`}>{ws.name}</Link>
{ws.repos.length > 0 && (Merged threadide #122 by @osebo (merge, 253e90e).
