Set canonical URL without overriding other params

manuelschoebel:ms-seo defaults to clearing prior settings on any call to
``SEO.set``, unless a second falsy argument is given.

Fixes #878.
This commit is contained in:
Charlie DeTar 2015-04-04 09:03:50 -06:00
parent c02850b78c
commit ce488a2a76

View file

@ -155,12 +155,10 @@ Router._filters = {
},
setCanonical: function () {
// note: disabled for now because the code below erases the page title
// var post = Posts.findOne(this.params._id);
// if (post) {
// SEO.set({link: {canonical: getPostPageUrl(post)}});
// }
var post = Posts.findOne(this.params._id);
if (post) {
SEO.set({link: {canonical: getPostPageUrl(post)}}, false);
}
}
};