Skip to content

[NEXT-655] Next js 13 moves all meta tags to the head tag including schema markup meta tags  #42648

@mjad218

Description

@mjad218

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

    Operating System: 
      Platform: win32 
      Arch: x64       
      Version: Windows 10 Home
    Binaries:
      Node: 18.12.1   
      npm: N/A        
      Yarn: N/A       
      pnpm: N/A       
    Relevant packages:
      next: 13.0.2    
      eslint-config-next: 13.0.2
      react: 18.2.0   
      react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

I have schema markup on my application https://schema.org/.

I place some meta tags inside the header for example to let search engines understand the page better.

<meta itemProp="accessibilityControl" content="fullMouseControl"/>
<meta itemProp="accessibilityHazard" content="noFlashingHazard" />
<meta itemProp="accessibilityHazard" content="noMotionSimulationHazard"/>
<meta itemProp="accessibilityHazard" content="noSoundHazard" />
<meta itemProp="accessibilityAPI" content="ARIA" />

Currently, I see these tags moved inside the head tag.

They should remain at their current position in the DOM tree.

Expected Behavior

Next js 13 should keep certain meta tags at their current position in the DOM tree.

Link to reproduction

N/A

To Reproduce

Just create a new next 13 app and place some meta tags inside the body or any other element.

NEXT-655

Metadata

Metadata

Assignees

Labels

bugIssue was opened via the bug report template.linear: nextConfirmed issue that is tracked by the Next.js team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions