lack of appending html tag attrs in not-found
Verify canary release
- [X] I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64
Binaries:
Node: 18.16.1
npm: 9.5.1
Yarn: 1.22.19
pnpm: N/A
Relevant Packages:
next: 13.4.10-canary.8
eslint-config-next: 13.4.10
react: 18.2.0
react-dom: 18.2.0
typescript: 5.1.6
Next.js Config:
output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
https://codesandbox.io/p/sandbox/small-pine-s676pm?file=%2Fpackage.json%3A1%2C1
To Reproduce
- add some attrs on html tag like dir="rtl"
- go to a not found page
- if you inspect you see all html tags gone
Describe the Bug
Html tag attributes do not append on not-found page as it appends on page.tsx.
workaround:
create a [...not-found]/page.tsx in the root of app then add this dummy code.
import {notFound} from 'next/navigation';
export default function NotFoundDummy() { notFound(); }
Expected Behavior
all html tags attributes should be working fine without nasty [...not-found]/page.tsx or if it is the way that currently handled I can see NO information in the docs about this isssue.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
+1
What problems arise because of this: https://github.com/vercel/next.js/discussions/66593
This issue has been automatically marked as stale due to inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
This issue has been automatically closed due to inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!