Skip to content

Conversation

rohanhake98
Copy link

@rohanhake98 rohanhake98 commented Aug 15, 2025

fix: add redirect after successful register and login (#1835)

Description:
This PR fixes issue #1835, where after successful registration, the user was not automatically redirected to the login page, and after successful login, the user was not redirected to the homepage.

Changes Made:

Added redirect logic after successful registration to navigate users directly to the login page.

Added redirect logic after successful login to navigate users directly to the homepage.

Ensured that once logged in, the user can see their profile and has options to edit profile and logout.

Before:

After registration → stayed on registration page.

After login → stayed on login page until manually navigating.

After:

After registration → automatically redirected to login page.

After login → automatically redirected to homepage.

Untitled.design.1.mp4

Steps to Test:

Register a new account.

Verify that you are redirected to the login page automatically.

Login with your credentials.

Verify that you are redirected to the homepage automatically.

Check that profile, edit profile, and logout features are accessible.

Linked Issue:
Closes #1835

Checklist:

Redirection tested for both register and login.

No console errors after changes.

Profile section visible after login.

Logout and edit profile working as expected.

Copy link

netlify bot commented Aug 15, 2025

Deploy Preview for taupe-cendol-f7e2bb ready!

Name Link
🔨 Latest commit 408d3b6
🔍 Latest deploy log https://app.netlify.com/projects/taupe-cendol-f7e2bb/deploys/689eaad75dbc310008ef714a
😎 Deploy Preview https://deploy-preview-1840--taupe-cendol-f7e2bb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After The Succesful Register Cannot Redirect To Login Page
1 participant