Skip to content

Commit 1dae6aa

Browse files
authored
[dashboard] Redirect /switch-to-payg to docs (#17112)
1 parent 0dc417e commit 1dae6aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/dashboard/src/app/AppRoutes.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ export const AppRoutes = () => {
170170
return <Redirect to={"/new/" + search + hash} />;
171171
}
172172

173+
// TODO(gpl): Hack to maintain email links after subscriptions are cancelled
174+
if (location.pathname.startsWith(switchToPAYGPathMain)) {
175+
window.location.href = `https://www.gitpod.io/docs/configure/billing`;
176+
return <div></div>;
177+
}
178+
173179
return (
174180
<Route>
175181
<div className="container">

0 commit comments

Comments
 (0)