Revision 55963
Added by Argiro Kokogiannaki almost 5 years ago
project.component.ts | ||
---|---|---|
136 | 136 |
|
137 | 137 |
this.updateTitle(title); |
138 | 138 |
this.updateDescription(description); |
139 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url); |
|
140 | 139 |
this.projectId = params['projectId']; |
141 | 140 |
var grantId = params['grantId']; |
142 | 141 |
var funder = params['funder']; |
... | ... | |
318 | 317 |
err => { |
319 | 318 |
//console.log(err); |
320 | 319 |
this.handleError("Error getting project for id: "+this.projectId, err); |
321 |
|
|
320 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToProjects); |
|
322 | 321 |
this.errorMessage = 'No project found'; |
323 | 322 |
this.showLoading = false; |
324 | 323 |
} |
... | ... | |
343 | 342 |
err => { |
344 | 343 |
//console.log(err); |
345 | 344 |
this.handleError("Error getting project for grant id: "+grantId+" and funder: "+funder, err); |
346 |
|
|
345 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToProjects); |
|
347 | 346 |
this.errorMessage = 'No project found'; |
348 | 347 |
this.showLoading = false; |
349 | 348 |
} |
... | ... | |
354 | 353 |
if(this.projectName == undefined || this.projectName == '') { |
355 | 354 |
this.projectName = this.projectInfo.title; |
356 | 355 |
} |
356 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url); |
|
357 | 357 |
this.updateTitle(this.projectName); |
358 | 358 |
this.updateDescription("project, "+this.projectName+ ","+this.projectInfo.funder+","+this.projectInfo.acronym); |
359 | 359 |
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){ |
Also available in: Unified diff
[angular7|library]
Merging Trunk into branch 55904:55959