[MGNLUI-401] Rich-text field should use absolute path with context path when linking to plugin Created: 11/Dec/12  Updated: 11/Feb/13  Resolved: 19/Dec/12

Status: Closed
Project: Magnolia UI
Component/s: dialogs, forms
Affects Version/s: None
Fix Version/s: 5.0

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Samuli Penttilä
Resolution: Fixed Votes: 0
Labels: frontend
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLUI-287 Rich Text editor fields are not displ... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Currently it uses a link with parent references (..) in it which means that its dependent on the number of directories in the current URL. A better solution would generate an absolute link taking the context path (magnoliaAuthor / magnoliaPublic for instance) into account.

If there is a convenient way in Vaadin to generate such links this should be used otherwise build the URL yourself using the current HttpRequest object.



 Comments   
Comment by Samuli Penttilä [ 19/Dec/12 ]

Fixed. Had do make AdminCentralApplication to implement interface HttpServletRequestListener to access the HTTP request object.

Generated at Mon Feb 12 08:36:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.