From 79108b06933bc3705b615cba6feb1708e2695b54 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Fri, 1 May 2026 20:45:33 +0200 Subject: [PATCH] =?UTF-8?q?v0.1.17=20=E2=80=94=20sunset=20continue:=20link?= =?UTF-8?q?=20back=20to=20source=20domain=20(server=20resolves=20to=20targ?= =?UTF-8?q?et),=20nicht=20direkt=20zum=20Ziel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/sunset-html.ts | 13 ++++++------- package.json | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) 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",