Commits

Giuseppe Digilio authored 47543b42373
[CST-5729] Fix duplicate links for download page
No tags

src/app/bitstream-page/bitstream-download-page/bitstream-download-page.component.ts

Modified
101 101 * @private
102 102 */
103 103 private initPageLinks(): void {
104 104 if (isPlatformServer(this.platformId)) {
105 105 this.route.params.subscribe(params => {
106 106 this.signpostingDataService.getLinks(params.id).pipe(take(1)).subscribe((signpostingLinks: SignpostingLink[]) => {
107 107 let links = '';
108 108
109 109 signpostingLinks.forEach((link: SignpostingLink) => {
110 110 links = links + (isNotEmpty(links) ? ', ' : '') + `<${link.href}> ; rel="${link.rel}"` + (isNotEmpty(link.type) ? ` ; type="${link.type}" ` : ' ');
111 - links = links + (isNotEmpty(links) ? ', ' : '') + `<${link.href}> ; rel="${link.rel}" ; type="${link.type}" `;
112 111 });
113 112
114 113 this.responseService.setHeader('Link', links);
115 114 });
116 115 });
117 116 }
118 117 }
119 118 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut