[MGNLREST-655] CLONE - richTextLinkReferenceResolver doesn't resolve localised link for all languages - 3.0 Created: 21/Mar/23  Updated: 22/Mar/23  Resolved: 22/Mar/23

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: 2.2.12
Fix Version/s: 3.0.0

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: File testEndpoint_v1.yaml     File website.travel.test.yaml    
Issue Links:
Cloners
clones MGNLREST-363 richTextLinkReferenceResolver doesn't... Closed
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLREST-654 Port to rest 3.0 Sub-task Completed Dai Ha  
MGNLREST-656 piQA 6.3 Sub-task Closed  
MGNLREST-657 QA Sub-task Completed Canh Nguyen  
MGNLREST-652 Review & piQA 6.3 Sub-task Completed Chuong Doan Huy  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: Support
Sprint: DevX 33
Story Points: 0
Team: DeveloperX
Work Started:

 Description   

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

  1. Make use of the attached endpoint testEndpoint_v1.yaml
  2. 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
  3. 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.


Generated at Mon Feb 12 07:01:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.