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

Closes Issue #323 #329

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Closes Issue #323 #329

wants to merge 1 commit into from

Conversation

pnilan
Copy link
Collaborator

@pnilan pnilan commented Oct 12, 2023

Issue

Logged in users weren't being correctly redirected and therefore after a successful request to GET /api/users/me the user would receive a blank page.

Resolution

When an already logged in user navigates to base URL, the useEffect hook in App.js verified if user is already logged in but no action was taken after updated user state. Added in useNavigate hook to redirect user to either the base URL or to their desired destination URL upon successful request to GET /api/users/me.

…to enable redirection after successful api/users/me request
@pnilan pnilan requested a review from francisli October 12, 2023 04:29
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