fix: encode URI parameter to proxy URI

Closes #326
This commit is contained in:
Jovan Krunić
2022-11-01 15:26:25 +00:00
committed by Rainer Killinger
parent aba9627661
commit bc13cc5e1f
2 changed files with 2 additions and 2 deletions
@@ -115,7 +115,7 @@ describe('DaiaDataProvider', () => {
};
expect(daiaDataProvider.getHoldingLink(holding)).toEqual(
`${proxyUrl}${available.href}`,
`${proxyUrl}${encodeURIComponent(available.href as string)}`,
);
});
});
+1 -1
View File
@@ -206,7 +206,7 @@ export class DaiaDataProvider {
return resourceLink;
}
return `${this.hebisProxyUrl}${resourceLink}`;
return `${this.hebisProxyUrl}${encodeURIComponent(resourceLink)}`;
}
holdingHasStatus(available: DaiaService[]): boolean {