Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does dochead work with Blaze in 1.2 #33

Open
txs opened this issue May 3, 2016 · 5 comments
Open

Does dochead work with Blaze in 1.2 #33

txs opened this issue May 3, 2016 · 5 comments

Comments

@txs
Copy link

txs commented May 3, 2016

The dochead doesn't work for me in 1.2 with blaze.

In the head code, I set the default to run in flowrouter trigger enter and in router action.
The head show the code 2 times.
But in facebook debug, I just doesn't make it work!

@maxenceC
Copy link

maxenceC commented May 4, 2016

Exact same thing here, [email protected] :

  • I use DocHead in flowrouter trigger enter, as well as in a Meteor.startup()
  • If I open google inspector, meta tags are there
  • Spiderable is installed
  • In facebook debug and google webmaster tools , There are no meta tags

@krishaamer
Copy link

Has this been resolved?

@txs
Copy link
Author

txs commented May 23, 2016

Mine even with Google is not there. I think I have a issue with phantom
in mup
On May 21, 2016 6:22 AM, "Kris Haamer" [email protected] wrote:

Has this been resolved?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#33 (comment)

@Pagebakers
Copy link

Pagebakers commented Jun 6, 2016

This will make it work with Blaze

FlowRouter.route('/post/:postId', {
  name: 'post',
  action(params) {
    if (Meteor.isClient) {
      BlazeLayout.render('layout')
    } else {
      Meteor.subscribe('posts', params.postId)
      if ((post = Posts.findOne(params.postId))) {
        DocHead.addMeta({
          property: 'og:image',
          content: post.image
        })
      }
    }
  }
})

@txs
Copy link
Author

txs commented Jun 7, 2016

no!!! I rewrite it all with react router! Thanks BTW I'll try it
On Jun 6, 2016 6:50 PM, "Eelco Wiersma" [email protected] wrote:

This will make it work with Blaze

FlowRouter.route('/post/:postId', {
name: 'post',
action(params) {
if (Meteor.isClient) {
BlazeLayout.render('layout')
} else {
Meteor.subscribe('posts', params.postId)
if ((post = Uploads.findOne(params.postId))) {
DocHead.addMeta({
name: 'property="og:image"',
content: post.image
})
}
}
}
})


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAh1WXZQTWj2nqPrnDrwjCCKaN7iQpYVks5qI_togaJpZM4IWDbo
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants