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

Return fully-qualified URL in _links.componentRendering property

    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

      In order to fix inconsistency and provide better integration on the SPA SDK side, we need to update `_links.componentRendering` Page Model API property.

      Requirements:

      • Return `type: "external"` to turn link rewriting off.
      • Return fully-qualified URL.
      • Rename `componentRendering` to `self` to be consistent with the page-lavel links.

      Example:
      Before:

      "_links": {
        "componentRendering": {
          "href": "/site/spa-react-csr/resourceapi?_hn:type=component-rendering&_hn:ref=r3&org.hippoecm.hst.container.render_host=127.0.0.1&bloomreach-preview=true"
        }
      }
      

      After:

      "_links": {
        "self": {
          "href": "http://127.0.0.1:9080/site/spa-react-csr/resourceapi?_hn:type=component-rendering&_hn:ref=r3&org.hippoecm.hst.container.render_host=127.0.0.1&bloomreach-preview=true",
          "type": "external"
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: