Preserve parameters
This was needed for the purchase success to be relayed back.
This commit is contained in:
parent
8d24a489f6
commit
95c0f53d21
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue