UNPKG

@hellocoop/helper-server

Version:

Hellō helper functions for server

18 lines (17 loc) 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.redirectURIBounce = redirectURIBounce; function redirectURIBounce() { return ` <html> <head> <script> const baseURL = window.location.href.split("?")[0] const searchParams = new URLSearchParams(window.location.search) searchParams.set("redirect_uri", window.location.origin + window.location.pathname) window.location.href = baseURL + '?' + searchParams.toString() </script> </head> </html> `; }