Make the active organization part of the URL (switching organization in one tab switches all tabs)

オープン
#5,959 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nextjs, typescript

調査の方向性

Start by tracing how the dashboard resolves the active organization from the session and how project or service routes handle a resource belonging to another organization. The issue does not name files or tests, so first locate those entry points and check existing route and membership behavior. Done means organization-specific URLs keep tabs and shared links in the intended organization; the smaller proposed step would show or switch to a member organization instead of redirecting home.

索引モデルが issue の本文から書いたものです。

説明

enhancement
What problem will this feature address?

The active organization is stored per browser session, not in the URL. So you can't work in two organizations at the same time in different tabs or windows: switching the organization in one tab switches it in every tab.

Concretely, when I have a service of organization A open in one tab and switch to organization B in another tab, the first tab's next navigation (or reload) of a link like /dashboard/project/<projectId>/environment/<envId>/services/compose/<serviceId> silently redirects to /dashboard/home, because that project belongs to A and the session now points to B. Links to services can't be shared or bookmarked reliably for the same reason: whether they open depends on which organization happens to be active.

This hurts most when several people or tools share one browser session, e.g. a developer and browser automation working on projects in different organizations at the same time – they keep switching the organization under each other.

Describe the solution you'd like

Make the organization part of the URL, e.g. /dashboard/<orgId-or-slug>/project/..., and resolve the active organization from the URL instead of the session (the session value can stay as the default for /dashboard/home). Then each tab works in its own organization and links always open the right one.

A smaller step that would already help: when a URL points to a project/service in another organization the user is a member of, switch to (or show) that organization instead of redirecting to /dashboard/home.

Describe alternatives you've considered
  • Separate browser profiles or private windows per organization (separate sessions) – works, but you have to log in for each, and links opened from other apps land in the wrong profile.
  • Switching the organization back and forth by hand before each action – error-prone, and it breaks whatever is open in other tabs.
Additional context

Seen on Dokploy v0.31.0 (self-hosted).

Will you send a PR to implement it?

No

主要言語
TypeScript
スター
38.8k
フォーク
3.2k
平均マージ
1日 10時間
マージ済み PR(30日)
110

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Dokploy/dokploy のほかの issue

Dokploy/dokploy の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。