Skip to content

Conversation

@Willie-theBeastMutua
Copy link

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. Ensure your PR title includes a conventional commit label (such as feat, fix, or chore, among others). See existing PR titles for inspiration.

For changes to apps

If applicable

  • My work includes tests or is validated by existing tests.
  • I have updated the esm-framework mock to reflect any API changes I have made.

Summary

This PR addresses the regression identified in O3-4478, where users who are already authenticated are not redirected to the home page when navigating back to /openmrs/spa/login.
✅ Changes Implemented:
Added a redirect check inside the login route handler to verify if the user is already authenticated.

If the session is valid, the user is automatically redirected to /openmrs/spa.

Screenshots

Screen.Recording.2025-07-22.at.14.53.43.mov

Related Issue

https://openmrs.atlassian.net/browse/O3-4478

Other

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