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(next): supports custom login redirects in initPage #6186

Merged
merged 2 commits into from May 3, 2024

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented May 2, 2024

Description

The initPage utility is able to be used outside the admin panel, however, the redirectUnauthenticatedUser flag was previously only able take the user to the admin panel's login page. This property now accepts a string so you can send your traffic to your own custom login page. This PR also housekeeps the initPage function by separating types into a types file, and abstracting a few code blocks into standalone functions. See #5877 for implementation details.

  • I have read and understand the CONTRIBUTING.md document in this repository.

@jacobsfletch jacobsfletch changed the title Fix/init page feat(next): supports custom login redirects in initPage May 2, 2024
@jacobsfletch jacobsfletch marked this pull request as ready for review May 2, 2024 18:06
@jacobsfletch jacobsfletch merged commit ea917dd into beta May 3, 2024
33 checks passed
@jacobsfletch jacobsfletch deleted the fix/init-page branch May 3, 2024 13:48
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.

None yet

1 participant