-
Bug
-
Resolution: Fixed
-
Neutral
-
2.2.12
-
None
-
None
-
-
Empty show more show less
-
DevX 33
-
5
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
- is cloned by
-
MGNLREST-655 CLONE - richTextLinkReferenceResolver doesn't resolve localised link for all languages - 3.0
- Closed
1.
|
Implement | Completed | Dai Ha | |
2.
|
Review | Completed | Jaroslav Simak | |
3.
|
piQA | Completed | Milan Divilek | |
4.
|
QA | Completed | Canh Nguyen |