[MGNLREST-196] Convert returned links into public links Created: 14/Nov/18  Updated: 23/Oct/23  Resolved: 06/Oct/20

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

Type: Improvement Priority: Neutral
Reporter: Jonathan Ayala Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 3
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 3d 7.5h
Original Estimate: Not Specified

Attachments: Zip Archive configuration_for-ref.zip     PNG File image-2020-09-09-11-53-23-777.png    
Issue Links:
Relates
relates to MGNLREST-310 Delivery endpoint API does not update... Closed
relates to MGNLREST-210 Delivery endpoint should resolve link... Closed
causality
dependency
documentation
to be documented by MGNLREST-272 DOC: referenceResolver for richTextFi... Closed
duplicate
is duplicated by MGNLREST-210 Delivery endpoint should resolve link... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Headless Phase 2
Sprint: UI FW 7, UI FW 8, Maintenance 27
Story Points: 2

 Description   

When retrieving content from RichTextField through a REST request links are returned with the form:

<a href=\"${link:{uuid:{090eb9c4-b35b-4869-a12f-6ea80292cba4},repository:{dam},path:{/tours/paris_eiffel_Louis-Pellissier_IMG_8643.jpg}}}\">paris_eiffel_Louis-Pellissier_IMG_8643.jpg</a> 

This won't be desirable in many cases and thus there should be a way to have them in the form:

http://localhost:8080/.../paris_eiffel_Louis-Pellissier_IMG_8643.jpg

 

Acceptance Criteria:

  • Should support any JCR item (such as other pages, content items, DAM)
  • For DAM should also support rendering variations, unless this introduced too much complexity in which case it could be postponed in another ticket.

 



 Comments   
Comment by Federico Grilli [ 09/Sep/20 ]

The image url produced is invalid, as it gets a .html appended, e.g. http://localhost:8080/magnolia/dam/Kyoto.jpg.html 
Issue caught by mdrapela while documenting the fix for 6.2.3 release. 

Generated at Mon Feb 12 06:57:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.