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

fix(hash): second time redirect page no effect #927

Closed
wants to merge 1 commit into from

Conversation

PeterAlfredLee
Copy link
Contributor

This PR is about #916.

I think we should not throw NAVIGATION_DUPLICATED if redirectedFrom exists, and at the same time from, targetLocation & redirectedFrom are not the same value.

I tested this PR with the case in #916 and it works. Feel free to let me know if I need to add the corresponding tests. :-)

Fix #916

@posva
Copy link
Member

posva commented May 10, 2021

Thank you but I'm not sure about this. The correct way would be to restore the history like in #921. Did you find a case where that fix was failing?

@PeterAlfredLee
Copy link
Contributor Author

Thank you but I'm not sure about this. The correct way would be to restore the history like in #921. Did you find a case where that fix was failing?

Hi @posva . I think I find a solution about this.
I pushed a new PR #944 . You can merge #944 if you think it's a good solution, or you can close that PR and modify the code of this PR. It's up to you. :)

@posva posva closed this May 28, 2021
@PeterAlfredLee PeterAlfredLee deleted the fix_916 branch May 29, 2021 00:47
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.

Redirect the page through the router guard, the second time will not take effect
2 participants