Skip to content

Option to remove links with duplicated hreflangs #86

@danon

Description

@danon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions