Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Metadata properties caused by Route Group and Parallel Route at the same Level #69778

Closed
serhiiminin opened this issue Sep 6, 2024 · 2 comments
Labels
bug Issue was opened via the bug report template. locked Metadata Related to Next.js' Metadata API.

Comments

@serhiiminin
Copy link

Link to the code that reproduces this issue

https://github.com/serhiiminin/nextjs-metadata-merging-issue/

To Reproduce

  1. Start the application.
  2. Click on the "Product" link.
  3. Observe the title of the browser tab.

Current vs. Expected behavior

Expected Result: The browser tab displays the title of the "Product" page.

Actual Result: The browser tab displays the current URL instead of the page title. This issue is resolved after refreshing the page. (I tried adding default.tsx files at every level, thinking the issue might be related to parallel routes, but it didn't resolve the problem)

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 20.12.2
  npm: 10.5.0
  Yarn: 1.22.19
  pnpm: 9.9.0
Relevant Packages:
  next: 14.2.8 // Latest available version is detected (14.2.8).
  eslint-config-next: 14.2.8
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
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 dev (local), next build (local), Other (Deployed)

Additional context

No response

@serhiiminin serhiiminin added the bug Issue was opened via the bug report template. label Sep 6, 2024
@github-actions github-actions bot added the Metadata Related to Next.js' Metadata API. label Sep 6, 2024
huozhi added a commit that referenced this issue Sep 9, 2024
### What

Fixes metadata merging issue on 14.2. There's a bug with React  on 14.2 as it bit outdated: while generating rsc payload, if we use fragment to wrap the metadata and noindex component, it will miss all the data. It works well with separating them as an array.
It also requires #64058 to be applied as well so the output not-found page will having correct status 404, and then we can generate noindex metatag based on correct status

Fixes #69778
@huozhi huozhi closed this as completed Sep 9, 2024
@huozhi
Copy link
Member

huozhi commented Sep 9, 2024

This is fixed in patch release 14.2.9, please upgrade Next.js to that version, thanks 🙏

Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked Metadata Related to Next.js' Metadata API.
Projects
None yet
Development

No branches or pull requests

3 participants