[NEXT-1207] Default viewport tag not generated for not-found
pages.
#49979
Labels
area: app
App directory (appDir: true)
linear: next
Confirmed issue that is tracked by the Next.js team.
Metadata
Related to Next.js' Metadata API.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 Binaries: Node: 18.15.0 npm: 9.5.0 Yarn: N/A pnpm: N/A Relevant packages: next: 13.4.2 eslint-config-next: 13.4.2 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
to-reproduce is simple enough :) and codesandbox breaks when I create a not-found.tsx file :(
To Reproduce
create-next-app
not-found.tsx
pagenotFound()
to the top of your root page/
-> default viewport tag is there/does-not-exist
default viewport tag is missingDescribe the Bug
So far accessing a page
/does-not-exist
and one triggered bynotFound()
behave a little differently even though they both render thenot-found
page.It looks like a fix for broken Link is on its way. But there is also an issue with the default
viewport
meta tag that NextJS adds.When accessing a
/does-not-exist
that viewport tag is missing, while for anotFound()
page, it will be there.Expected Behavior
The default viewport tag is always added to the page
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1207
The text was updated successfully, but these errors were encountered: