mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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
4 lines
80 B
JavaScript
4 lines
80 B
JavaScript
export default function Another() {
|
|
return <p id="another">another page</p>
|
|
}
|