Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
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
- duplicates
-
HSTTWO-4741 All SPA 'internal' links should be relative to the sitemap item path
- Closed