liferay/alloy-editor

SVG assets path is not using `ALLOYEDITOR_BASEPATH`

alk-mandrianarijaona opened this issue · 0 comments

Do you want to request a feature or report a bug?

A bug

What is the current behavior?

SVG button icons are not using ALLOYEDITOR_BASEPATH and become not found if alloyeditor is deployed in a different path

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

I am building my project with webpack and libs are copied in a vendors folder. I then set ALLOYEDITOR_BASEPATH to match this path as seen below:

Screenshot 2021-06-01 at 10 15 35

But when I edit a text and display a button, the icon is not found

Screenshot 2021-06-01 at 10 14 48

and looking in network, I see alloyeditor is not using the correct path set in ALLOYEDITOR_BASEPATH:

Screenshot 2021-06-01 at 10 16 18

What is the expected behavior?

SVG path should use ALLOYEDITOR_BASEPATH

Which versions of alloy-editor, and which browser / OS are affected by this issue? Did this work in previous versions?

v2.12.0 in Chrome is not working, our previous version was v1.5.27 and it did not have this issue
also tested on v2.14.0