rsnext/packages/next/shared/lib/router
JJ Kasper 4ab41efdbf
Add handling for repeated slashes (#27738)
This adds handling for repeated forward/back slashes in Next.js, when these slashes are detected in a request to Next.js we will automatically remove the additional slashes redirecting with a 308 status code which prevents duplicate content when being crawled by search engines. 

Fixes: https://github.com/vercel/next.js/issues/13011
Fixes: https://github.com/vercel/next.js/issues/23772
Closes: https://github.com/vercel/next.js/pull/15171
Closes: https://github.com/vercel/next.js/pull/25745
2021-08-03 15:06:26 +00:00
..
utils Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
router.ts Add handling for repeated slashes (#27738) 2021-08-03 15:06:26 +00:00