vue-head icon indicating copy to clipboard operation
vue-head copied to clipboard

Option to remove links with duplicated hreflangs

Open danon opened this issue 6 years ago • 2 comments

Currently, vue-head removes links with duplicated id (so if there was <link id="a"> rendered in source, and link with id: 'a' is rendered in runtime, then the previous one is removed).

I would really love if there was an option to also remove duplicated by hreflang attribute, so if there's a link like so in source:

<html>
<head>
 <link hreflang="en-GB"/>
</head>

and I have this in my Head.js:

{
  rel: 'alternate',
  hreflang: 'en-GB'
}

then the previous one (rendered in source) would also be deleted, just like it is deleted now if id are duplicated.

It can be a flag set in vue-head or in config.

Waiting for your answer.

danon avatar Dec 18 '19 13:12 danon

I am developing vue-head v3 and I am adding several features it does not currently have, including the correct use of hreflang.

I don't have an exact forecast of when it will be released, but it will be in early 2020.

ktquez avatar Dec 20 '19 20:12 ktquez

cool, can't wait :)

danon avatar Dec 21 '19 12:12 danon