inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Prepend title instead of appending to meta items

Open RobertBoes opened this issue 1 year ago • 2 comments

Currently when using SSR and the Inertia head component, the title is appended to the meta items.

Taking an example from the docs:

<Head>
  <title>Your page title</title>
  <meta name="description" content="Your page description">
</Head>

This would render in the HTML as;

<meta name="description" content="Your page description">
<title inertia>Your page title</title>

Since the title is somewhat of a special element the user doesn't have any control over where it's placed in the HTML. Rendering it as the first element would make more sense to me. (edit: removed the part about SEO, as that's not of a concern)

RobertBoes avatar Jul 05 '24 14:07 RobertBoes