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:
Jukka Lipka
2025-05-16 09:15:40 +02:00
committed by github-actions[bot]
parent a7a543cfb0
commit 0988c41c19

View File

@@ -92,7 +92,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);