MCPcopy
hub / github.com/thinkjs/thinkjs / redirect

Method redirect

index.d.ts:402–402  ·  view source on GitHub ↗

* Perform a 302 redirect to `url`. * * The string "back" is special-cased * to provide Referrer support, when Referrer * is not present `alt` or "/" is used. * * Examples: * * this.redirect('back'); * this.redirect('back', '/index.html'); * this.redir

(url: string, alt?: string)

Source from the content-addressed store, hash-verified

400 * this.redirect('http://google.com');
401 */
402 redirect(url: string, alt?: string): void;
403
404 /**
405 * get controller instance

Callers 2

redirectFunction · 0.80
controller.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected