Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 9973b85

Browse files
Merge pull request #263 from gets0ul/2771
Fix for Community App Issue #2771 MSFT-54 Page Title
2 parents e21001b + 44812f5 commit 9973b85

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

app/app-config.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ config = (
7272

7373
states['MEMBER_LOGIN'] =
7474
url: '/member?retUrl&handle&password&return_to&client_id&response_type&state&redirect_uri&scope'
75+
title: 'Login'
7576
controller : 'TCLoginController as vm'
7677
template: require('./views/tc/login')()
7778
public: true
@@ -87,6 +88,7 @@ config = (
8788
# message : (optional) A message handed by Identity Service when some error occurs
8889
states['MEMBER_REGISTRATION'] =
8990
url: '/member/registration?retUrl&utm_source&utm_medium&utm_campaign&userJWTToken&auth0Jwt&auth0Refresh&message'
91+
title: 'Register'
9092
params: { 'auth0Data', 'regForm' }
9193
controller : 'TCRegistrationController as vm'
9294
template: require('./views/tc/register.jade')()

app/app-run.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ run = ($log, $rootScope, $state, $urlRouter, $location) ->
99

1010
# hide common footer and banner for connect pages to allow new styled footer for connect
1111
$rootScope.hideCommonFooter = toState.url && toState.url.indexOf('/connect') != -1
12+
# page title
13+
$rootScope.pageTitle = toState.title
1214
path = $location.path()
1315
queryString = ''
1416
referrer = ''

app/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ html(ng-app='accounts')
55
meta(http-equiv='X-UA-Compatible', content='IE=edge, chrome=1')
66
meta(name='viewport', content='width=device-width, initial-scale=1')
77
base(href='/')
8-
title Login | Topcoder
8+
title(ng-bind="pageTitle ? pageTitle + ' | Topcoder' : 'Topcoder'")
99
style.
1010
.ng-hide {
1111
display: none !important;

0 commit comments

Comments
 (0)