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.
(cherry picked from commit 2dd870ea7e
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
141b053507
commit
7917c70f31
@@ -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