Skip to content

Commit 88a2bbe

Browse files
authored
docs: fix minor formatting typo (#2093)
1 parent 66aee2c commit 88a2bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/guide/migrating-5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ app.get('/user', (req, res) => {
259259

260260
<h3 id="magic-redirect">res.redirect('back') and res.location('back')</h3>
261261

262-
Express 5 no longer supports the magic string `back` in the `res.redirect()` and `res.location()` methods. Instead, use the `req.get('Referrer') || '/'` value to redirect back to the previous page. In Express 4, the res.`redirect('back')` and `res.location('back')` methods were deprecated.
262+
Express 5 no longer supports the magic string `back` in the `res.redirect()` and `res.location()` methods. Instead, use the `req.get('Referrer') || '/'` value to redirect back to the previous page. In Express 4, the `res.redirect('back')` and `res.location('back')` methods were deprecated.
263263

264264
{% capture codemod-magic-redirect %}
265265
You can replace the deprecated signatures with the following command:

0 commit comments

Comments
 (0)