krokyze / flutter_seo

Flutter package for SEO support on Web.
MIT License
48 stars 5 forks source link

canonical showing up twice in the rendered HTML #62

Closed jaredsburrows closed 7 months ago

jaredsburrows commented 7 months ago

When using Seo.head:

Seo.head(
  tags: <HeadTag>[
    MetaTag(
      name: 'description',
      content: toolInfo.pageDescription(context),
     ),
    LinkTag(
       rel: 'canonical',
      href: 'https://burrows.tools${toolInfo.routeName}',
    )
  ],
  child: toolInfo.toolRouteFactory(),
);

I am seeing the following in the rendered HTML: <link rel="canonical" href="https://burrows.tools"> and <link rel="canonical" href="https://burrows.tools/json-formatter" flt-seo="">

Is it just safe to remove the "default" HTML <link rel="canonical" href="https://burrows.tools">?

krokyze commented 7 months ago

Hey, yep you can remove the default html one 😉