[
https://issues.apache.org/jira/browse/NIFI-15393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048024#comment-18048024
]
Naman Shukla commented on NIFI-15393:
-------------------------------------
*Issue has been resolved.*
*Root Cause:*
The authentication flow was not preserving the original requested URL before
redirecting to the login page, causing users to lose their intended destination
after successful authentication.
*Solution Implemented:*
- Captured the original requested URL before redirecting to login
- Stored the URL appropriately during the authentication process
- Modified the post-login redirect logic to navigate to the preserved URL
instead of the default home screen
- Added fallback to home screen if no original URL was stored
*Testing:*
- Verified that clicking a shared URL while logged out now redirects to the
intended page after login
- Tested with various URL formats and deep links
- Confirmed fallback behavior works when no original URL exists
*Pull Request:* https://github.com/apache/nifi/pull/10698
*Branch:* NIFI-15393-fix-login-redirect
The fix ensures a seamless user experience by maintaining navigation context
across the authentication flow.
> NiFi UI redirects to home screen after login instead of preserving the
> original URL destination
> ------------------------------------------------------------------------------------------------
>
> Key: NIFI-15393
> URL: https://issues.apache.org/jira/browse/NIFI-15393
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.28.1, 2.7.2
> Reporter: Naman Shukla
> Priority: Minor
> Labels: UI
> Fix For: 1.28.1, 2.7.2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When a user clicks on a shared NiFi URL while not authenticated, the login
> process does not preserve the original destination URL. After successfully
> logging in, the user is redirected to the home screen instead of the intended
> location. The user must then manually paste the original URL into the address
> bar again to reach the desired page.
> *Expected Behavior:* After login, the user should be automatically redirected
> to the originally requested URL.
> *Actual Behavior:* User is redirected to the home screen, requiring manual
> navigation to the intended destination.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)