fix(frontend): open the variable expiration handler template in a new tab

The "Create a handler" button hands its script template to /scripts/add through
the URL hash, which `load` reads from `window.location`. A client-side navigation
leaves the previous page's hash in place, so the payload was dropped and the
editor opened on the default template at a `u/` path. `target="_blank"` forces a
full page load, matching the success handler's "Create from template" button.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
AlexRV12
2026-08-27 12:15:23 +02:00
co-authored by Claude Opus 5
parent 67da34668f
commit 0943d3cc9b
@@ -2153,6 +2153,7 @@ export async function main(
}
`
})}
target="_blank"
>
Create a handler
</Button>