Hi Team!
Pretend that we are in product A console and it has a hyperlink field to another product B console, which simply calls
<host>:<port>/libs/commerce/gui/content/products/properties.html?item=<path-to-another-product>
If we jump from A to B using the link, then header.Referer will store value of link to A, which is correct. Clicking on 'Close' button we'd like to get back to Products list page, however we return to product A console. This happens because product properties node has the following field.
backHref (String) = ${empty header.Referer ? granite:concat("/aem/products.html",
granite:encodeURIPath(granite:relativeParent(param.item, 1))) : header.Referer}
Is this a bug? What would you suggest to make the console return to Products list page? Should we override 'Close' button configuration?
Thanks in advance