Skip to content

Commit f9283f3

Browse files
committed
Portal: Add missing redirects for bridge pages (#8201)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the redirect paths in the `redirects.mjs` file to streamline payment-related navigation by adding new routes that point to a `bridge` structure. ### Detailed summary - Added redirect for `"/payments/sell"` to `"/bridge/sell"` - Added redirect for `"/payments/swap"` to `"/bridge/swap"` - Added redirect for `"/payments/tokens"` to `"/bridge/tokens"` - Added redirect for `"/payments/routes"` to `"/bridge/routes"` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added redirects so payment URLs now route to corresponding bridge destinations: * /payments/sell → /bridge/sell * /payments/swap → /bridge/swap * /payments/tokens → /bridge/tokens * /payments/routes → /bridge/routes * Existing bookmarks and shared links to payment pages will continue working and automatically route to the updated locations, with no UI changes required. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9fbb29d commit f9283f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/portal/redirects.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,10 @@ const paymentRedirects = {
738738
"/connect/pay/buy-with-fiat": "/payments",
739739
"/connect/pay/enable-test-mode": "/payments",
740740
"/connect/pay/guides/enable-test-mode": "/payments",
741+
"/payments/sell": "/bridge/sell",
742+
"/payments/swap": "/bridge/swap",
743+
"/payments/tokens": "/bridge/tokens",
744+
"/payments/routes": "/bridge/routes",
741745
};
742746

743747
const contractRedirects = {

0 commit comments

Comments
 (0)