mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix(versioning): encode summary
The reason for creating a new version is now encoded in the URL.
This commit is contained in:
@@ -111,7 +111,7 @@ export class VersionHistoryDataService extends IdentifiableDataService<VersionHi
|
||||
|
||||
this.halService.getEndpoint(this.versionsEndpoint).pipe(
|
||||
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)),
|
||||
).subscribe((href) => {
|
||||
const request = new PostRequest(requestId, href, itemHref, requestOptions);
|
||||
|
Reference in New Issue
Block a user