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

refactor(route): allow all private route to redirect #1027

Merged
merged 1 commit into from
Dec 9, 2020
Merged

Conversation

Oxiang
Copy link
Contributor

@Oxiang Oxiang commented Dec 8, 2020

Problem

Currently, all private page routes (user and directory) will be directed to login page before redirecting back to the private page, on refresh. Directory page's redirect is coded as an edge case which can be generalised to allow redirect from all private routes

Closes #988

Solution

  • Remove directory previous location check and enable all private route

Refactors

  • Move GA recording for directory to directory page
  • Change login defaultprops to typescript default value

- remove directory only redirect
- allow all private route to redirect from login page
- shift directory ga to directory module
- fix husky lint
@Oxiang Oxiang requested a review from liangyuanruo December 8, 2020 08:19
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already fixed husky, so you may want to rebase/rework the commit

@Oxiang
Copy link
Contributor Author

Oxiang commented Dec 9, 2020

I've already fixed husky, so you may want to rebase/rework the commit

since our husky is the same and there is no conflict, i will just merge it

@Oxiang Oxiang merged commit a58a03d into develop Dec 9, 2020
@Oxiang Oxiang deleted the private-route branch December 9, 2020 02:32
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.

Investigate necessity for Login page GA to cater to GoDirectory redirects
2 participants