Child pages
  • [cms] Absolute paths in HTML generated by "my_document" CKEditor plugin [5.2.2-B1]
Skip to end of metadata
Go to start of metadata

In-Portal is using CKEditor as it's WYSIWYG editor. Alongside built-in plugins we've developed some custom ones, including "my_document" plugin, that allows to add nice links to uploaded documents inside CMS blocks:

It does look right, but URL to the icon next to document link is using absolute path:

<a href="/d/in-portal.52x/system/user_files/Documents/Bible.pdf" id="Doc_|_Bible.pdf_|_image">
	<img alt="Bible" src="" /> Bible

This causes problems, when website is shown under different domains, because icon is always loaded from domain, where content was entered.


Use relative path for document type icon images.

Related Tasks

INP-1643 - Getting issue details... STATUS