kimroen / ember-cli-document-title

Adding document title behaviour to your ember app
MIT License
215 stars 61 forks source link

Fastboot Support #43

Closed rudymacias closed 8 years ago

rudymacias commented 8 years ago

This add-on is mentioned to support Ember Fastboot apps but I'm unable to see it actually work as expected. It does work normally when EmberJS is loaded, but when viewing the site source contents, the title is the same as written in "app/index.html" file. As a Ember Fastboot app I would expect for the title tag to change based on the configuration set. If this is a Fastboot issue, please disregard my issue. Thanks!

csheppard commented 8 years ago

Yup my model hooks don't set the title for fastboot

rudymacias commented 8 years ago

@csheppard Hey so I was able to temporarily fix by doing the following:

  1. Remove the <title> tag from the app/index.html file.
  2. Add <title> tag to the app/templates/head.hbs file (of course placing the model title or the desired dynamic content).

And it worked out perfectly for me! Let me know if u need help.

kellyselden commented 8 years ago

@rudymacias I think you should reopen this. Your workaround of using another addon shouldn't be required.