#256: rename page URLs to match nav labels (/public, /saved)
CI / test (pull_request) Successful in 22s
CI / docker (pull_request) Skipped

This commit is contained in:
fen
2026-09-17 14:30:23 -05:00
parent ca785f5648
commit c91d0e53ca
8 changed files with 70 additions and 15 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function redeem() {
try { tok = sessionStorage.getItem('deletion_token_' + PASTE_ID) || ''; } catch(e) {}
if (!tok) { alert('deletion token not available in this browser'); return; }
fetch('/api/pastes/' + PASTE_ID + '/redeem', {method: 'DELETE', headers: {'Authorization': 'Bearer ' + tok}})
.then(r => { if (r.ok) location.href = '/history'; else alert('delete failed'); });
.then(r => { if (r.ok) location.href = '/public'; else alert('delete failed'); });
}
// wiring (moved from inline handlers for CSP #139)