This commit is contained in:
Manav Rathi 2024-03-28 11:48:56 +05:30
parent 478435f806
commit e4c18b9e74
No known key found for this signature in database
3 changed files with 2 additions and 6 deletions

View file

@ -1,2 +0,0 @@
export const DESKTOP_REDIRECT_URL = "ente://app/gallery";
export const ENTE_WEBSITE_URL = "https://ente.io";

View file

@ -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;
}, []);

View file

@ -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);
}