Skip to content
Myr

Added redirect migration docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 2b2fa7e · Browse files · 3 files+48 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+48 added−0 removed

  • other:+48 added−0 removed

3 files+48 added−0 removed

modified:docs/migrate.1+26 added
284 unmodified lines
285.286.fi287.288.IP "" 0289.290.SS "Redirect"291Previously you would292.293.IP "" 4294.295.nf296297this\.redirect(\'/somewhere\');298.299.fi300.301.IP "" 0302.303.P304However now you should use the Redirect Middleware \fIhttp://extjs\.github\.com/Connect/redirect\.html\fR:305.306.IP "" 4307.308.nf309310res\.redirect(\'/somewhere\');311.312.fi313.314.IP "" 0315
modified:docs/migrate.html+12 added
327 unmodified lines
328329<pre><code>partial('comments', comments);330</code></pre>331332<h3 id="Redirect">Redirect</h3>333334<p>Previously you would</p>335336<pre><code>this.redirect('/somewhere');337</code></pre>338339<p>However now you should use the <a href="http://extjs.github.com/Connect/redirect.html">Redirect Middleware</a>:</p>340341<pre><code>res.redirect('/somewhere');342</code></pre>343344</div>345 </div>346 </div>347 </body>
1 unmodified line
modified:docs/migrate.md+10 added