ktquez / vue-head

Manager the meta information of the head tag, a simple and easy way
MIT License
984 stars 73 forks source link

Option to remove links with duplicated hreflangs #86

Open danon opened 4 years ago

danon commented 4 years ago

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.

ktquez commented 4 years ago

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.

danon commented 4 years ago

cool, can't wait :)