Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto redirect to safe mode on login app error [LIBS-670] #874

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Aug 28, 2024

DRAFT

Might be good to decide if we want to implement safe login mode in v42, before proceeding with an auto redirect as now the app on error (in v42) will redirect to a non-existent page. Also, might be good to think about what safe login mode should look like as an autoredirect will now bring users to a login page that looks different than the actual login page (which I imagine could make people suspicious of the content)

See https://dhis2.atlassian.net/jira/software/c/projects/LIBS/issues/LIBS-670

This PR:

  • updates error boundary in adapter to auto redirect to safe login mode for login app
  • outputs error to console by default for login app (if you enable persistence of console logs on navigation, you would see the console error after redirect)

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.

1 participant