diff --git a/web/apps/payments/src/services/billing-service.ts b/web/apps/payments/src/services/billing-service.ts index 9eb4fe1d5..c0ba5da1e 100644 --- a/web/apps/payments/src/services/billing-service.ts +++ b/web/apps/payments/src/services/billing-service.ts @@ -11,7 +11,9 @@ import { loadStripe } from "@stripe/stripe-js"; export const parseAndHandleRequest = async () => { // See: [Note: Intercept payments redirection to desktop app] if (window.location.pathname == "/desktop-redirect") { - window.location.href = "ente://app"; + const desktopRedirectURL = new URL("ente://app/gallery"); + desktopRedirectURL.search = new URL(window.location.href).search; + window.location.href = desktopRedirectURL.href; return; }