Public
Script
v6
December 27, 2023
1
2
3
4
5
6
7
import { refs } from "https://esm.town/v/stevekrouse/refs";
export function editRedirect() {
const ref = refs()[0];
const editURL = `https://val.town/v/${ref.userHandle}/${ref.valName}`;
return Response.redirect(editURL);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v6
December 27, 2023