diff --git a/en/guide/migrating-5.md b/en/guide/migrating-5.md index 8e03cb76..d16b9679 100755 --- a/en/guide/migrating-5.md +++ b/en/guide/migrating-5.md @@ -259,7 +259,7 @@ app.get('/user', (req, res) => {

res.redirect('back') and res.location('back')

-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. +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. {% capture codemod-magic-redirect %} You can replace the deprecated signatures with the following command: