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

Function redirect

lib/extend/controller.js:225–228  ·  view source on GitHub ↗

* Perform a 302 redirect to `url`. * @param {String} url * @param {String} alt

(url, alt)

Source from the content-addressed store, hash-verified

223 * @param {String} alt
224 */
225 redirect(url, alt) {
226 this.ctx.redirect(url, alt);
227 return false;
228 },
229 /**
230 * get controller instance
231 * @param {String} name

Callers

nothing calls this directly

Calls 1

redirectMethod · 0.80

Tested by

no test coverage detected