-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.3.3 CE GA4, 7.3.4 CE GA5, 7.3.5 CE GA6
-
Fix Version/s: 7.3.X, 7.3.10 DXP FP1, 7.3.10.1 DXP SP1, 7.3.6 CE GA7, Master
-
Component/s: Dynamic Data Mapping > Form Builder
-
Branch Version/s:7.3.x
-
Backported to Branch:Committed
-
Fix Priority:4
When running Liferay in another context than ROOT, (ex. /portal) the input fields not load because URL not contain the context.
const ENDPOINT_FIELD_TYPES = `${window.location.origin}/o/dynamic-data-mapping-form-field-types`;
The code must contain context like:
const ENDPOINT_FIELD_TYPES = `${window.location.origin}${themeDisplay.getPathContext()}/o/dynamic-data-mapping-form-field-types`;