Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4732

Provide a possibility to set a custom prefix for the Page Model API links

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.2.0
    • None
    • None
    • 0.1
    • Puma Sprint 227, Puma Sprint 228-SaaS BrX v0.2

    Description

      Use case:
      When the CMS is running in the intranet behind some reverse proxy. In this case, an application requests the Page Model via some custom reverse proxy host. The client-side navigation on the SPA side requires some link rewriting mechanism to get accessible from the outside API links.

      Requirements:

      • Introduce an option (e.g., `apiHost`) behaving similarly to `cdnHost`.
      • Replace host in the Page Model API link with the value from the option as-is.

      Example:
      In the following example, we set `hst:apiHost` to `https://api.example.com/brxm`.

      Before:

      "_links": {
        "self": {
          "href": "http://127.0.0.1:9080/site/_cmsinternal/spa-react-csr/resourceapi/news/"
        }
      }
      

      After:

      "_links": {
        "self": {
          "href": "https://api.example.com/brxm/site/_cmsinternal/spa-react-csr/resourceapi/news/",
          "type": "external"
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdokolin Mikhail Dokolin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: