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
a7a543cfb0
commit
0988c41c19
@@ -92,7 +92,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