opengraph image does not work when inside a route group
stefanprobst opened this issue · 1 comments
stefanprobst commented
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-next-og-route-group
To Reproduce
- clone repo,
pnpm install && pnpm run build && pnpm run start
- go to http://localhost:3000/en/opengraph-image
- see 404 page
to see that it is working correctly when the route group is removed, you can check out the "no-route-group" branch, go to http://localhost:3000/en/opengraph-image and see the og image displayed correctly.
Current vs. Expected behavior
current: opengraph image not displayed when inside a route group
expected: opengraph image should be displayed
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #202403151937 SMP PREEMPT_DYNAMIC Fri Mar 15 19:52:22 UTC 2024
Available memory (MB): 31401
Available CPU cores: 16
Binaries:
Node: 22.11.0
npm: 10.9.0
Yarn: 1.22.22
pnpm: 9.14.2
Relevant Packages:
next: 15.1.1-canary.1 // Latest available version is detected (15.1.1-canary.1).
eslint-config-next: N/A
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.2
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response