Skip to content

Commit 7227590

Browse files
committed
fix: use window.location.href for billing portal to avoid React Router intercepting external redirect
1 parent 219b376 commit 7227590

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

apps/builder/app/dashboard/profile-menu.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ export const ProfileMenu = ({
8787
purchase.subscriptionId ? (
8888
<DropdownMenuItem
8989
key={purchase.subscriptionId}
90-
onSelect={() =>
91-
navigate(userPlanSubscriptionPath(purchase.subscriptionId))
92-
}
90+
onSelect={() => {
91+
window.location.href = userPlanSubscriptionPath(
92+
purchase.subscriptionId
93+
);
94+
}}
9395
>
9496
{purchase.planName}
9597
</DropdownMenuItem>

0 commit comments

Comments
 (0)