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

Next 13: Issue with title #42342

Open
1 task done
alexvcasillas opened this issue Nov 2, 2022 · 1 comment
Open
1 task done

Next 13: Issue with title #42342

alexvcasillas opened this issue Nov 2, 2022 · 1 comment
Labels
bug Issue was opened via the bug report template.

Comments

@alexvcasillas
Copy link

alexvcasillas commented Nov 2, 2022

Verify canary release

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

Provide environment information

Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Mon Sep 19 19:14:52 UTC 2022
Binaries:
Node: 16.15.0
npm: 8.5.5
Yarn: 3.2.4
pnpm: N/A
Relevant packages:
next: 13.0.2-canary.0
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0

What browser are you using? (if relevant)

Chrome 107.0.5304.87

How are you deploying your application? (if relevant)

Vercel

Describe the Bug

Having an SVG that includes <title> tag makes the document title to use this <title> instead of the one defined in the layout.tsx file within the HTML <title> tag.

Expected Behavior

I should use the HTML <title> within layout.tsx and not the <title> within an SVG element

Link to reproduction

https://codesandbox.io/s/ecstatic-poitras-tj7rhn

To Reproduce

  1. Create next 13 application
  2. Create a layout and add your title
  3. Create a SVG component that has a <title> tag
  4. Insert this SVG in your main page
  5. Navigate/redirect/refresh between your pages
  6. You should see that when accessing the page that contains this SVG makes the document title change to the title within the tag of the SVG
@alexvcasillas alexvcasillas added the bug Issue was opened via the bug report template. label Nov 2, 2022
@lachlanjc
Copy link
Contributor

Also see: #42226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants