File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/(frontend)/(pages)/docs/[topic]/[doc] Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1+ import { PayloadRedirects } from '@components/PayloadRedirects'
12/* eslint-disable no-restricted-exports */
23import { RenderDocs } from '@components/RenderDocs'
34import config from '@payload-config'
45import { mergeOpenGraph } from '@root/seo/mergeOpenGraph.js'
5- import { notFound } from 'next/navigation'
66import { getPayload } from 'payload'
77import React from 'react'
88
@@ -35,7 +35,7 @@ export default async function DocsPage({ params }: { params: Promise<Params> })
3535 const topicGroups = await fetchTopicsForSidebar ( { payload, version : 'v3' } )
3636
3737 if ( ! curDoc ?. docs ?. length ) {
38- notFound ( )
38+ return < PayloadRedirects url = { `/docs/ ${ topicSlug } / ${ docSlug } ` } />
3939 }
4040
4141 const doc = curDoc . docs [ 0 ]
You can’t perform that action at this time.
0 commit comments