mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
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:
parent
c02850b78c
commit
ce488a2a76
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue