Meteor doesn't add hreflang tag


#1

Hey guys,
I’m having a problem when I try to add an “link” element to my section. I’m using the following code in one of my template files:

<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://www.myapp.com/android/icon_xhdpi.png" rel="apple-touch-icon" />
<link href="https://www.myapp.com/android/icon_xhdpi.png" rel="icon" />


<link href="https://de.myapp.com" rel="alternate" hreflang="de"/>


<meta name="viewport"
      content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1, minimum-scale=1">

</head>

Everything will be added except the link element with the hreflang. Why doesn’t Meteor add this one to the head?


#2

Looks like it’s being added via a simple Meteor Pad test - http://meteorpad.com/pad/XyuAnL5vyHf4pnz2B/Leaderboard. Do you have multiple <head/> sections across multiple templates? Maybe try reducing them to troubleshoot.


#3

I have same problem

This is my code, I’m using https://github.com/DerMambo/ms-seo

SEO.set({
            link: {
                rel: 'alternate',
                hreflang: "en-us"
                href: "www.mytesturl.com"
            }
        });