Redirect from web val to val page by adding /edit to the URL. Convention by pomdtr.
/edit
Create valimport { editRedirect } from "https://esm.town/v/stevekrouse/editRedirect"; import { Hono } from "npm:hono@3"; const app = new Hono(); app.get("/", (c) => c.text("Hello world!")); app.get("/edit", (c) => editRedirect()); export default app.fetch;
Live: https://stevekrouse-edit_redirect_example.web.val.run/edit
https://esm.town/v/stevekrouse/editRedirect
<script type="module" src="https://esm.town/v/stevekrouse/editRedirect"></script>