Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.9
-
None
-
Empty show more show less
-
Yes
-
UI FW 38, UI FW 39
-
3
Description
Reproduce
- Download a tomcat bundle to have both magnoliaAuthor and magnoliaPublic running in context.
- Enable the "images" button on the mtk:components/textImage
- Create a page with the basic page template and add a text image component.
- Use the images button to embed an image in the RTE
- Notice the embedded image link has "magnoliaAuthor"
Publish the page
On public when requesting the page is:
<div class="text-section"> <p><img alt="" src="/magnoliaAuthor/dam/jcr:795449d2-6c16-402e-9e8a-bbb101fe22bb/shark_brian_warrick_0824.JPG" style="height:866px; width:1197px" /></p> </div><!-- end text-section -->
Expected
A better way to handle the context without embedding it into the content.
Actual
The context becomes part of the link.
Dev notes
Caused by https://git.magnolia-cms.com/projects/MODULES/repos/dam/browse/magnolia-dam-jcr/src/main/java/info/magnolia/dam/jcr/JcrAssetProvider.java#410 prepending asset link with context
The latter is used at https://git.magnolia-cms.com/projects/MODULES/repos/dam/browse/magnolia-dam-app/src/main/java/info/magnolia/dam/app/field/factory/DamRichTextFieldFactory.java#127
Slack discussion https://magnolia-cms.slack.com/archives/CC1GVEGFP/p1615905137003800?thread_ts=1612883302.050300&cid=CC1GVEGFP
Workaround
Use a regex redirect to modify the uri on public.
Checklists
Attachments
Issue Links
- duplicates
-
MGNLUI-6412 Insert images option in RichText field does not work after published
-
- Closed
-
- is cloned by
-
MGNLDAM-994 CLONE - RTE image selector embeds context
-
- Closed
-
-
MGNLUI-6882 New UI RichText field is not rendering images from old UI RichText field
-
- Closed
-
- is related to
-
MGNLUI-6527 Image embedded with RTE in the old pages app "broken" when opening component in new pages app
-
- Closed
-