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

Improve Page Model API site links

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • site-toolkit
    • None

    Description

      Page Model API site links currently are fully qualified links containing also the 'mount path'.

      For example assume I have a page model resource api available below

      /site/foo/bar/resourceapi
      

      Then 'site links' will look something like

      http://www.example.com/site/foo/bar/news/item.html
      

      However, this is not handy for URLs that belong to the same SPA (aka data-type='internal' links)

      A 'site link' should be in line with the context of the SPA running in the browser. In that case, the 'site link' should not be fully qualified, neither contain 'site' nor the mount path 'foo/bar' but only

      /news/item.html
      

      This is the 'site link' from the POV of the SPA in the browser. For non-internal links, the site link probably can stay as it currently is. Also we should indicated the link type

      site: {
      href: "/news/foo/bar.html"
      type : internal
      }
      

      Challenge

      We need to figure out if we can change this in the 14.1. Is this an incompatible change? Should the SPA SDK be able to handle both cases?

      mdokolin Would it by the way make sense to add to the PMA response in the _meta also the version of the PMA response? Note that the current version is 0.9

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: