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
8 lines
141 B
JavaScript
8 lines
141 B
JavaScript
if (typeof window !== 'undefined') {
|
|
window.errorLoad = true
|
|
}
|
|
|
|
export default function Page() {
|
|
return <p id="error">custom error</p>
|
|
}
|