Merged in fix/redirect-content-types (pull request #1855)
Fix/redirect content types * feat(SW-2429): Removed [contentType]>[uid] and use app router based structure for content types * feat(SW-2429): Added breadcrumbs to follow contenttype folder structure * fix(SW-2112): reenabling redirect middleware since working with new content-type routing strategy Approved-by: Michael Zetterberg
This commit is contained in:
@@ -58,6 +58,8 @@ export const middleware: NextMiddleware = async (request) => {
|
||||
headers,
|
||||
})
|
||||
}
|
||||
|
||||
return NextResponse.next({ headers })
|
||||
} catch (e) {
|
||||
console.error("Redirect error: ", e)
|
||||
throw notFound()
|
||||
|
||||
Reference in New Issue
Block a user