nfl / react-helmet

A document head manager for React
MIT License
17.28k stars 657 forks source link

Multiple hreflang to the same URL #654

Open hasslarp opened 2 years ago

hasslarp commented 2 years ago

Do you want to request a feature or report a bug? Bug (possibly feature request if this is intended behaviour)

What is the current behavior? A latter component overwrites previous <link rel="alternate" hreflang="... value if the href value is a duplicate.

https://codesandbox.io/s/cool-smoke-l7bkd

What is the expected behavior? You can have several hreflang tags pointing to the same URL. See https://www.searchviu.com/en/multiple-hreflang-tags-one-url/ for example

**Which versions of React and react-helmet, and which browser / OS are affected by this issue? React 17.0.2 React-helmet: 6.1.0