Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Preserve parameters

Manav Rathi95c0f53d2123
diff --git a/web/apps/payments/src/services/billing-service.ts b/web/apps/payments/src/services/billing-service.ts
index 9eb4fe1d5f..c0ba5da1e7 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;
}