Open ronco opened 8 years ago
LGTM
@ronco - Can we warn folks if they forget to remove <title>
from app/index.html
? Or even do it for them in a blueprint?
@rwjblue I was thinking of maybe updating this to remove it in a browser only initializer since this delays the title until the app is loaded in a non-fastboot scenario (see this issue on ember-page-title).
But that doesn't solve a duplicate error when you are using it with FastBoot.
I appreciate the help here. I'm a bit swamped, but wanted to let you know that I'm paying attention to this.
I'm making a new release of ember-cli-document-title today, but it doesn't look like I'll have the time to include this, unfortunately. Soon!
I'd like to have tests for this, so I created a new issue for that: https://github.com/kimroen/ember-cli-document-title/issues/52. I might just test it manually locally first and release this change if it proves to take a long time to write these test.
Some things:
suppressBrowserRender
-setting in ember-cli-head
interfere with the functionality of ember-cli-document-title
in any way?title
inside the head
in the DOM, but I'm not sure that is testing the same thing as checking document.title
. Is it? Why is it better/more correct?Thanks again, and sorry for the super-delay in getting around to checking this out.
Is this going to get merged?
FastBoot is moving to a solution where the entire contents of
<head>
and<body>
are injected into the document. In the near future title substitution will be removed entirely in favor of head substitution. This update switches the dependency on title substitution to use ember-cli-head for setting the title.Following semver I've bumped the version since this change will require users to remove the existing
<title>
tag from their index.html. Suggestions for changes welcome./cc @tomdale @rwjblue