import { REDIRECT_BACK } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/response.ts?s=REDIRECT_BACK";
A symbol that indicates to response.redirect()
to attempt to redirect
back to the request referrer. For example:
import { Application, REDIRECT_BACK } from "jsr:@oak/oak/";
const app = new Application();
app.use((ctx) => {
if (ctx.request.url.pathName === "/back") {
ctx.response.redirect(REDIRECT_BACK, "/");
}
});
await app.listen({ port: 80 });