In my SolidStart project, I have the following code:
<Title>Home | Example</Title>
<Link rel="canonical" href="https://www.example.com/" />
<Meta
name="description"
content="something"
/>
However, in the rendered output, there are two <link rel="canonical"> tags:
<link data-sm="00000000100000100000000800030" rel="canonical" href="https://www.example.com/">
<link rel="canonical" href="https://www.example.com/">
I tried removing the <Link> tag from the code, and after rendering, there was no canonical link at all. This confirms that the <Link> tag I added is the sole reason for the canonical link appearing.
So, what is causing the duplication of the <link rel="canonical"> tag in the rendered output, and how can I fix it? Or it dose not matter
thanks a lot