Merge pull request #2313 from 4Science/fix-duplicate-headers

[CST-5729] Fix duplicate links for download page
This commit is contained in:
Tim Donohue
2023-06-15 10:47:39 -05:00
committed by GitHub

View File

@@ -108,7 +108,6 @@ export class BitstreamDownloadPageComponent implements OnInit {
signpostingLinks.forEach((link: SignpostingLink) => { signpostingLinks.forEach((link: SignpostingLink) => {
links = links + (isNotEmpty(links) ? ', ' : '') + `<${link.href}> ; rel="${link.rel}"` + (isNotEmpty(link.type) ? ` ; type="${link.type}" ` : ' '); links = links + (isNotEmpty(links) ? ', ' : '') + `<${link.href}> ; rel="${link.rel}"` + (isNotEmpty(link.type) ? ` ; type="${link.type}" ` : ' ');
links = links + (isNotEmpty(links) ? ', ' : '') + `<${link.href}> ; rel="${link.rel}" ; type="${link.type}" `;
}); });
this.responseService.setHeader('Link', links); this.responseService.setHeader('Link', links);