bug: Hide password values in deeplinks #594 (#596)

This commit is contained in:
James Read 2025-05-31 20:54:44 +01:00 committed by GitHub
parent 7110399d41
commit cebab32514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -221,9 +221,13 @@ class ArgumentForm extends window.HTMLElement {
if (!ev.target.name) {
return
}
// Get the current URL and create a new URL object
const url = new URL(window.location.href)
if (ev.target.type === 'password') {
return;
}
// copy the parameter value
url.searchParams.set(ev.target.name, ev.target.value)