Production release February 2024 [CONNECT] #34

Merged
konstantina.galouni merged 168 commits from develop into master 2024-02-15 11:04:20 +01:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit c43e7caeea - Show all commits

View File

@ -20,6 +20,7 @@ export abstract class BaseComponent implements OnDestroy {
/** Metadata */ /** Metadata */
public title: string; public title: string;
public description: string; public description: string;
public url: string;
protected _route: ActivatedRoute; protected _route: ActivatedRoute;
protected _piwikService: PiwikService; protected _piwikService: PiwikService;
protected _meta: Meta; protected _meta: Meta;
@ -85,12 +86,12 @@ export abstract class BaseComponent implements OnDestroy {
this._title.setTitle(this.title); this._title.setTitle(this.title);
} }
if (this._router) { if (this._router) {
const url = properties.domain + properties.baseLink + this._router.url; this.url = properties.domain + properties.baseLink + this._router.url;
if (this.seoService) { if (this.seoService) {
this.seoService.createLinkForCanonicalURL(url, false); this.seoService.createLinkForCanonicalURL(this.url, false);
} }
if (this._meta) { if (this._meta) {
this._meta.updateTag({content: url}, "property='og:url'"); this._meta.updateTag({content: this.url}, "property='og:url'");
this._meta.updateTag({content: this.description}, "name='description'"); this._meta.updateTag({content: this.description}, "name='description'");
this._meta.updateTag({content: this.description}, "property='og:description'"); this._meta.updateTag({content: this.description}, "property='og:description'");
this._meta.updateTag({content: this.title}, "property='og:title'"); this._meta.updateTag({content: this.title}, "property='og:title'");