Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
Local dev
Description
Steps to reproduce
- Configure the module in an environment with context path other than `/` e.g. `magnoliaAuthor`
- Try to Generate Page
Expected results
List of allowed templates is displayed in the "Available templates" drop down
Actual results
List of allowed templates is not displayed in the "Available templates" drop down
Workaround
In `base-api.js` update line 9 to
export const getAvailableTemplates = async (currentNode) => await fetch(`${contextPath}/.rest/registry-definitions/templates/available/${currentNode}`).then(r => r.json());
Development notes
Would expect this to affect other dialogs such as generate personalisation variant.
Checklists
Acceptance criteria