iview / iview/iview-admin

How to redirect referenced route after login?

Open
#659 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

e.g., referenced url is http://localhost:8080/#/purchaseOrder?PO_id=123, which is after login route. The default route after login is http://localhost:8080/home.

When user is not logged in, then it is redirected to login page.

How can i redirect directly to purchaseOrder route after login instead of home?

Is there any way to store params passed with referenced url?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the login redirect handling for the referenced #/purchaseOrder?PO_id=123 URL and compare it with the default /home route. Done means returning to the referenced route after login while preserving the PO_id parameter.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.