Skip to content

Conversation

@allison-truhlar
Copy link
Collaborator

Clickup id: 86adnk5ya

This PR adds a dedicated login page at /login. If the user is authenticated, they get rerouted to /browse. The base path /fg/, a holdover from when the app was served by JupyterLab, is removed.

This PR should be implemented in conjunction with PR 11 fileglancer-hub.

@krokicki

- Move login functionality from Home component to dedicated Login page
- Add redirect logic for already-authenticated users
- Update default next URL to /browse (from /fg/browse)
- Preserve next parameter handling for post-login redirects
- Remove old getBasename() function and basename prop - stale code from JupyterHub integration
- Add RootRedirect component for safe auth-based navigation
- Update RequireAuth redirect to /login (from /fg/)
- Restructure routes: root redirects, /login for auth, /browse protected
- Add Login route and update all paths to remove /fg/ prefix
- Home login functionality is now in Login component
- Update ProfileMenu login URL from /fg/ to /login
- also need to add env vars to disable access flags and okta auth
Copy link
Member

@neomorphic neomorphic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Tested with the update to fileglancer-hub and it works well.

@allison-truhlar allison-truhlar merged commit b0ae85b into main Dec 17, 2025
7 checks passed
@allison-truhlar allison-truhlar deleted the remove-welcome-page branch December 17, 2025 14:24
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.

3 participants