Module

jinks/redirect

src/jinks/redirect.pooka

Static hosts cannot promise an HTTP 301 just because a file asks nicely. An alias is an HTML fallback: a canonical link, immediate refresh, and a visible link for readers whose browser does not follow the refresh.

API reference

function

render

src/jinks/redirect.pooka:11
render(canonical: String) -> String
INFERREDfn(String) -> String
function

render_url

src/jinks/redirect.pooka:17
render_url(target: String) -> String
INFERREDfn(String) -> String

The build supplies a checked, deployment-prefixed URL. Escape it once for every HTML attribute and the visible fallback link.