Skip to content

fux(ui): retain previous page in AuthWrapper and redirect back#208

Open
saurabhsingh72487-hub wants to merge 1 commit into
effectindex:masterfrom
saurabhsingh72487-hub:issue-129
Open

fux(ui): retain previous page in AuthWrapper and redirect back#208
saurabhsingh72487-hub wants to merge 1 commit into
effectindex:masterfrom
saurabhsingh72487-hub:issue-129

Conversation

@saurabhsingh72487-hub
Copy link
Copy Markdown

Summary

Retain the user's previous page when redirecting unauthenticated users to login.

Changes

  • Updated AuthWrapper.vue to preserve the current route before redirecting to /login
  • Updated LoginView.vue to redirect users back after successful authentication

Test

  • Open a protected route while logged out
  • Confirm redirect to /login?redirect=<original-route>
  • Login successfully
  • Confirm navigation returns to original page

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