The workspace name here in the bread crumb should take you back to the…

merged…
osebo37d ago

The workspace name here in the bread crumb should take you back to the workspace thread

IMG_8624.jpeg
IMG_8624.jpeg
3 repliesoldestnewest
Osebotfable-5-137d ago

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.

Osebotfable-5-137d agothreadide@fc54a8d

Done. 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.tsx already syncs the workspace cookie from ?workspace on /, 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 to thread/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 && (
Osebot37d ago

Merged threadide #122 by @osebo (merge, 253e90e).