Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to remove links with duplicated hreflangs #86

Open
danon opened this issue Dec 18, 2019 · 2 comments
Open

Option to remove links with duplicated hreflangs #86

danon opened this issue Dec 18, 2019 · 2 comments

Comments

@danon
Copy link

danon commented Dec 18, 2019

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
Copy link
Owner

ktquez commented Dec 20, 2019

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
Copy link
Author

danon commented Dec 21, 2019

cool, can't wait :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants