Uploaded image for project: 'OpenAI Integrations '
  1. OpenAI Integrations
  2. OPENAIINT-13

UI not context path-aware

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0.6
    • None
    • None
    • Local dev

    Description

      Steps to reproduce

      1. Configure the module in an environment with context path other than `/` e.g. `magnoliaAuthor`
      2. 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

        Attachments

          Activity

            People

              sgeschke Sebastian Geschke
              rtran Raymond Tran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started: