File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
client/modules/User/components Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,10 @@ class Collection extends React.Component {
181
181
}
182
182
183
183
getTitle ( ) {
184
- if ( this . props . username === this . props . user . username ) {
185
- return this . props . t ( 'Collection.Title' ) ;
186
- }
187
- return this . props . t ( 'Collection.AnothersTitle' , {
188
- anotheruser : this . props . username
189
- } ) ;
184
+ const collectionTitle = this . props . t ( 'Collection.Title' ) ;
185
+ const titleSplits = collectionTitle . split ( '|' ) ;
186
+ const title = titleSplits [ 0 ] . concat ( '| ' ) ;
187
+ return title ;
190
188
}
191
189
192
190
getUsername ( ) {
@@ -418,7 +416,7 @@ class Collection extends React.Component {
418
416
>
419
417
< article className = "collection" >
420
418
< Helmet >
421
- < title > { this . getTitle ( ) } </ title >
419
+ < title > { this . getTitle ( ) + title } </ title >
422
420
</ Helmet >
423
421
{ this . _renderLoader ( ) }
424
422
{ this . hasCollection ( ) && this . _renderCollectionMetadata ( ) }
You can’t perform that action at this time.
0 commit comments