Skip to content

fix: fixed navbar logo redirection from change organisation page #4791

Closed
hrishi82 wants to merge 2 commits into
superplanehq:mainfrom
hrishi82:fix/navbar-logo-clickability-navigates-incorrectly
Closed

fix: fixed navbar logo redirection from change organisation page #4791
hrishi82 wants to merge 2 commits into
superplanehq:mainfrom
hrishi82:fix/navbar-logo-clickability-navigates-incorrectly

Conversation

@hrishi82
Copy link
Copy Markdown

Issue: #4771

What changed:
Persist the active organization id in sessionStorage, use it for the header logo when the route has no org (e.g. when user is on Change Organisation page), and clear it on sign out.

Why:
After clicking on “Change organization” from the settings menu, users land on "/" route without organizationId in the URL, so the logo targeted "/undefined". We also need a “back to last org” behavior which this PR implements

How:
OrganizationScope (and org list clicks) call setCurrentOrgIdToSessionStorage;
OrganizationMenuButton resolves the logo with organizationId || getCurrentOrgIdFromSessionStorage();
sign out calls clearCurrentOrgIdFromSessionStorage() before /logout.

Related issues:
None

Breaking changes:
None.

…nisation and clicks on the navbar logo

Signed-off-by: Hrishikesh Barman <hrishib4882@gmail.com>
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

@markoa
Copy link
Copy Markdown
Contributor

markoa commented May 15, 2026

Thank you but we will not be proceeding with this PR.

@markoa markoa closed this May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants