You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Prasad P. Pawar (Jira)" <ji...@apache.org> on 2026/01/14 12:58:00 UTC
[jira] [Resolved] (ATLAS-5185) [REACT UI] Fix logout localStorage key mismatch and add Apache Atlas logo in header when sidebar is collapsed
[ https://issues.apache.org/jira/browse/ATLAS-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasad P. Pawar resolved ATLAS-5185.
------------------------------------
Fix Version/s: 3.0.0
2.5.0
Resolution: Fixed
> [REACT UI] Fix logout localStorage key mismatch and add Apache Atlas logo in header when sidebar is collapsed
> -------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-5185
> URL: https://issues.apache.org/jira/browse/ATLAS-5185
> Project: Atlas
> Issue Type: Bug
> Components: atlas-webui
> Affects Versions: 3.0.0
> Reporter: Prasad P. Pawar
> Assignee: Prasad P. Pawar
> Priority: Major
> Fix For: 3.0.0, 2.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> h2. Summary
> This ticket addresses two related UI issues in React UI:
> # {*}Logout localStorage Key Mismatch{*}: When users log out from React UI, the application sets localStorage.atlas_ui = "v3", but the login redirect logic only checks localStorage.last_ui_load. This causes users to be redirected to Classic UI instead of React UI after logout and subsequent login.
> # {*}Missing Logo in Collapsed Sidebar{*}: When the left sidebar is collapsed, the Apache Atlas logo (apache-atlas-logo.svg) should be displayed in the header, similar to how atlas_logo.svg is displayed when the sidebar is expanded.
> h2. Issue 1: Logout localStorage Key Mismatch
> h3. Steps to Reproduce
> # Login to Atlas React UI (v3)
> # Perform any actions in React UI
> # Click Logout from React UI
> # Login again to Atlas
> # Observe which UI loads
> h3. Expected Behavior
> * After logging out from React UI and logging in again, user should be redirected to React UI (/n3/index.html)
> * The logout action should preserve the UI preference for the next login session
> h3. Actual Behavior
> * After logging out from React UI and logging in again, user is redirected to Classic UI (/index.html)
> * This happens because the login redirect logic checks localStorage.last_ui_load, but React UI sets localStorage.atlas_ui on logout
> h3. Root Cause
> The login redirect logic in dashboardv2/public/js/modules/atlasLogin.js (line 102) checks:
> var lastUILoad = window.localStorage && window.localStorage.last_ui_load;
--
This message was sent by Atlassian Jira
(v8.20.10#820010)