Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12843

Return fully-qualified URL in _links.self property

    XMLWordPrintable

Details

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

    Description

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

      Requirements:

      • Return `type: "external"` to turn link rewriting off.
      • Return query string parameters passed to the Page Model API.
      • Resolve wildcard URLs.

      Example:
      Before:

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

      After:

      "_links": {
        "self": {
          "href": "http://127.0.0.1:9080/site/_cmsinternal/spa-react-csr/resourceapi/news/2015?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: