#Page Title

1 messages · Page 1 of 1 (latest)

vocal coyote
#

I'm trying to get the correct page title to track events on the page. I'm using the "ember-page-title" package and it works flawlessly, but the page title is always one page title behind the current route.

#

The page title shows before the page title update the document.title

#

mhm now that I think about it... the page-title happens after init ..

lusty siren
#

when you say “the page title is always one page behind” do you mean as displayed for the page or as logged in logEvent?

vocal coyote
#

So the problem is {#page-event} compnent happens after init is called so document.title is still the old title until the render happens

lusty siren