Skip to content

Title tag position error. #79404

Closed
Closed
@xuerzong

Description

@xuerzong

Link to the code that reproduces this issue

https://github.com/xuerzong/next-title-tag-error

To Reproduce

  1. Create app use npx create-next-app@latest and then run npm run dev.

  2. Open http://localhost:3000,find the <title /> tag, which is in the <body />.

Current vs. Expected behavior

I tried moving the favicon.ico from the app folder to the public folder, the <title /> tag is in the correct position.

next-title-issue.mov

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 23.10.0
  npm: 11.2.0
  Yarn: 1.22.19
  pnpm: 8.6.6
Relevant Packages:
  next: 15.3.2 // Latest available version is detected (15.3.2).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
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)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    MetadataRelated to Next.js' Metadata API.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions