Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
417 B
2
Indexable
Never
function () { 
var canonicalMetaUrl;
var mtmFullUrl = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search + window.location.hash;

if(document.querySelector('link[rel="canonical"]')) {
canonicalMetaUrl = document.querySelector('link[rel="canonical"]').href;

mtmFullUrl = canonicalMetaUrl + window.location.search + window.location.hash;
}

return mtmFullUrl ;
}
Leave a Comment