diff --git a/web/apps/payments/src/constants/common.ts b/web/apps/payments/src/constants/common.ts deleted file mode 100644 index 8c36f7a4e..000000000 --- a/web/apps/payments/src/constants/common.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const DESKTOP_REDIRECT_URL = "ente://app/gallery"; -export const ENTE_WEBSITE_URL = "https://ente.io"; diff --git a/web/apps/payments/src/pages/desktop-redirect.tsx b/web/apps/payments/src/pages/desktop-redirect.tsx index 61f350223..b945ee20a 100644 --- a/web/apps/payments/src/pages/desktop-redirect.tsx +++ b/web/apps/payments/src/pages/desktop-redirect.tsx @@ -1,12 +1,11 @@ import { Container } from "components/Container"; import EnteSpinner from "components/EnteSpinner"; -import { DESKTOP_REDIRECT_URL } from "constants/common"; import * as React from "react"; export default function DesktopRedirect() { React.useEffect(() => { const currentURL = new URL(window.location.href); - const desktopRedirectURL = new URL(DESKTOP_REDIRECT_URL); + const desktopRedirectURL = new URL("ente://app/gallery"); desktopRedirectURL.search = currentURL.search; window.location.href = desktopRedirectURL.href; }, []); diff --git a/web/apps/payments/src/pages/index.tsx b/web/apps/payments/src/pages/index.tsx index bc963d159..b4aad2a0e 100644 --- a/web/apps/payments/src/pages/index.tsx +++ b/web/apps/payments/src/pages/index.tsx @@ -1,6 +1,5 @@ import { Container } from "components/Container"; import EnteSpinner from "components/EnteSpinner"; -import { ENTE_WEBSITE_URL } from "constants/common"; import * as React from "react"; import { parseAndHandleRequest } from "services/billingService"; import { CUSTOM_ERROR } from "utils/error"; @@ -19,7 +18,7 @@ export default function Home() { e instanceof Error && e.message === CUSTOM_ERROR.DIRECT_OPEN_WITH_NO_QUERY_PARAMS ) { - window.location.href = ENTE_WEBSITE_URL; + window.location.href = "https://ente.io"; } else { setErrorMessageView(true); }