-
Notifications
You must be signed in to change notification settings - Fork 619
[Ecosystem Portal] Refactor: Update the middleware to redirect to subroutes rather than rewrites #5405
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
| const userAddress = await getCurrentUser(); | ||
| if (userAddress) { | ||
| redirect(`/wallet/${userAddress}`); | ||
| redirect(`${ecosystem}/wallet/${userAddress}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The redirect path is missing a leading forward slash, which could cause navigation issues. The correct path should be:
redirect(`/${ecosystem}/wallet/${userAddress}`)Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5405 +/- ##
=======================================
Coverage 45.30% 45.30%
=======================================
Files 1068 1068
Lines 55433 55433
Branches 4000 4000
=======================================
Hits 25112 25112
Misses 29634 29634
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
CNCT-2344
PR-Codex overview
This PR focuses on updating the routing and authentication mechanisms in the wallet application to support ecosystem-based paths and improve the logout functionality.
Detailed summary
ecosystemin wallet URLs.authedOnlyfunction to acceptecosystemas a parameter.ConnectButtonto log out users on disconnect.ecosystemin parameters.