diff --git a/lib/sunset-html.ts b/lib/sunset-html.ts index 82e6192..829d371 100644 --- a/lib/sunset-html.ts +++ b/lib/sunset-html.ts @@ -16,12 +16,11 @@ export function renderSunsetPage(opts: { const button = opts.cfg.button_label || "Weiter"; const date = opts.cfg.sunset_date ? `Geplante Abschaltung: ${opts.cfg.sunset_date}` : ""; - const continueUrl = (() => { - const sep = opts.target.includes("?") ? "&" : "?"; - const base = opts.preservePath ? opts.target + (opts.reqPath || "") : opts.target; - // Avoid mangling paths that already have query — only append nothing extra; just go to target as-is - return base; - })(); + // Continue link points back at OUR domain with nr_continue=1 — server.ts then skips the + // sunset interstitial and serves the actual redirect. + const path = opts.reqPath || "/"; + const sep = path.includes("?") ? "&" : "?"; + const continueUrl = `${path}${sep}nr_continue=1`; return ` @@ -77,7 +76,7 @@ export function renderSunsetPage(opts: {

${esc(title)}

${esc(message)}

${date ? `

${esc(date)}

` : ""} - ${esc(button)} + ${esc(button)}

${esc(opts.domain)} → ${esc(opts.target)}

diff --git a/package.json b/package.json index cd3b49c..992a63c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "corex-nexredirect", - "version": "0.1.16", + "version": "0.1.17", "license": "MIT", "overrides": { "postcss": "^8.5.13",