I’ve tested seeing if the title gets set with the following code:
<script type="text/discourse-plugin" version="0.2">
api.onPageChange( (url, title) => {
console.log('url', url);
console.log('title', title)
})
</script>
What I’m finding is that if I create a new topic, the topic’s title is not set on the call to api.onPageChange that is made immediately after creating the topic. In that case, the site’s title is used instead. Does this seem to be what’s happening on your site? If you are seeing no title at all, make sure that you have filled in the title and site description site settings. Those settings are found on the “Required” tab of your site settings page.