|
|
@ -6,6 +6,8 @@ import { RouterStateSnapshot, TitleStrategy } from '@angular/router'; |
|
|
|
export class PageTitleStrategy extends TitleStrategy { |
|
|
|
private static readonly DEFAULT_TITLE = |
|
|
|
'Ghostfolio – Open Source Wealth Management Software'; |
|
|
|
private static readonly DEFAULT_TITLE_SHORT = |
|
|
|
'Ghostfolio'; |
|
|
|
|
|
|
|
public constructor(private readonly title: Title) { |
|
|
|
super(); |
|
|
@ -15,7 +17,7 @@ export class PageTitleStrategy extends TitleStrategy { |
|
|
|
const title = this.buildTitle(routerState); |
|
|
|
|
|
|
|
if (title) { |
|
|
|
this.title.setTitle(`${title} – ${PageTitleStrategy.DEFAULT_TITLE}`); |
|
|
|
this.title.setTitle(`${title} – ${PageTitleStrategy.DEFAULT_TITLE_SHORT}`); |
|
|
|
} else { |
|
|
|
this.title.setTitle(`${PageTitleStrategy.DEFAULT_TITLE}`); |
|
|
|
} |
|
|
|