-
Bug
-
Resolution: Fixed
-
Neutral
-
2.2.12
-
None
-
None
-
-
Empty show more show less
-
DevX 33
-
0
When passing parameter lang=all in a request to a endpoint with a richTextLinkReferenceResolver, links are not resolved according to their language.
Steps to reproduce
- Make use of the attached endpoint testEndpoint_v1.yaml
- Create a basic page with a text and image component filled with a link to a page both in English and German website.travel.test.yaml
- Send a request to http://localhost:8080/magnoliaAuthor/.rest/delivery/testEndpoint/v1?lang=all
Expected results
Links in rich text fields are resolved for each locale
Actual results
Links in rich text fields are not resolved for each locale:
"text": "<p>this is a test <a href=\"/magnoliaAuthor/visit-finland.html\">link</a></p>\n", "text_de": "<p>this is a test <a href=\"/magnoliaAuthor/visit-finland.html\">link</a> GERMAN</p>\n",
However, sending a request with lang=de: http://localhost:8080/magnoliaAuthor/.rest/delivery/testEndpoint/v1?lang=de
"text": "<p>this is a test <a href=\"/magnoliaAuthor/de/visit-finland.html\">link</a> GERMAN</p>\n",
returns a correctly resolved link with the locale in the URL.
Acceptance criteria
- clones
-
MGNLREST-363 richTextLinkReferenceResolver doesn't resolve localised link for all languages
- Closed
1.
|
Port to rest 3.0 | Completed | Dai Ha | |
2.
|
piQA 6.3 | Closed | Unassigned | |
3.
|
QA | Completed | Canh Nguyen | |
4.
|
Review & piQA 6.3 | Completed | Chuong Doan Huy |