Fiori SAPUI5 - Get the complete target URL as string during Cross App Navigation -
i have use case have capture target url string.
i use cross app navigation navigate app.how build same url after cross app navigation can save link shareable.
onnavigatetocampaign: function(event) { var campaignid = event.getsource().getbindingcontext().getproperty("initiativeid"); if (jquery.sap.geturiparameters().get("sap-hpa-shell")) { window.top.postmessage({ id: "sap.hpa.shell.navigateto", hash: "#initiative_ti", objectid: campaignid }, document.location.origin); } else { var fgetservice = sap.ushell && sap.ushell.container && sap.ushell.container.getservice; var ocrossappnavigator = fgetservice && fgetservice("crossapplicationnavigation"); if (ocrossappnavigator) { ocrossappnavigator.toexternal({ target: { semanticobject: "initiative", action: "showdetail" }, params: { "id": [campaignid], "sap-hpa-targetobject": ["initiative_ti"] } }); } } }
at our system wasnt window.location.href
, window.location.hash
url parts!
Comments
Post a Comment