mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Merge pull request #4602 from DSpace/backport-4344-to-dspace-8_x
[Port dspace-8_x] fix(versioning): Encode summary
This commit is contained in:
@@ -111,7 +111,7 @@ export class VersionHistoryDataService extends IdentifiableDataService<VersionHi
|
|||||||
|
|
||||||
this.halService.getEndpoint(this.versionsEndpoint).pipe(
|
this.halService.getEndpoint(this.versionsEndpoint).pipe(
|
||||||
take(1),
|
take(1),
|
||||||
map((endpointUrl: string) => (summary?.length > 0) ? `${endpointUrl}?summary=${summary}` : `${endpointUrl}`),
|
map((endpointUrl: string) => (summary?.length > 0) ? `${endpointUrl}?summary=${encodeURIComponent(summary)}` : `${endpointUrl}`),
|
||||||
find((href: string) => hasValue(href)),
|
find((href: string) => hasValue(href)),
|
||||||
).subscribe((href) => {
|
).subscribe((href) => {
|
||||||
const request = new PostRequest(requestId, href, itemHref, requestOptions);
|
const request = new PostRequest(requestId, href, itemHref, requestOptions);
|
||||||
|
Reference in New Issue
Block a user