I am having difficulties setting the page title with the PageTitle Notification Subscriber when viewing individual product pages. It seems to work as intended on other pages, but it looks like the title gets overwritten on product pages. Has anyone else experienced this before? :-) The code can be seen below.
public override void OnNotify(string notification, NotificationArgs args)
{
if (args == null)
return;
Dynamicweb.Notifications.Standard.Page.PageTitleArgs pta = (Dynamicweb.Notifications.Standard.Page.PageTitleArgs)args;
var pageTitleText = pta.PageView.Area.Item["PageTitleText"];
if (pageTitleText != null)
{
pta.PageView.Meta.Title += $" - {pageTitleText}";
}
}