diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js index b26113c9d10f..b3948bd7c42e 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js @@ -35,7 +35,7 @@ title += name; } - $rootScope.$emit("$changeTitle", title); + scope.$emit("$changeTitle", title); }); scope.vm = {}; scope.vm.dropdownOpen = false; diff --git a/src/Umbraco.Web.UI.Client/src/init.js b/src/Umbraco.Web.UI.Client/src/init.js index b8b210db9e09..aa9b7b920fc1 100644 --- a/src/Umbraco.Web.UI.Client/src/init.js +++ b/src/Umbraco.Web.UI.Client/src/init.js @@ -46,8 +46,8 @@ app.run(['$rootScope', '$route', '$location', 'urlHelper', 'navigationService', var originalTitle = ""; - $rootScope.$on('$changeTitle',function (event, titlePrefix) { - $rootScope.locationTitle = titlePrefix; + $rootScope.$on('$changeTitle', function (event, titlePrefix) { + $rootScope.locationTitle = titlePrefix + " - " + originalTitle; }); /** execute code on each successful route */