Below is the simple code
({
gotoURL : function (component) {
var urlEvent = $A.get("e.force:navigateToURL");
var urlparam = "isdtp=mn";
urlEvent.setParams({
"url": "https://ownsandbox.my.salesforce.com/_ui/chatter/service/ChatterAnswersUi"+'?'+urlparam
});
alert(urlEvent);
urlEvent.fire();
}
})
I am trying to load the chatter answers with isdtp paramters to hide the headers but the url which gets loaded in the browser is without the isdtp param:
https://ownsandbox.my.salesforce.com/_ui/chatter/service/ChatterAnswersUi
If I use other param (not isdtp) like below, it does load the page with the params in the url:
({
gotoURL : function (component) {
var urlEvent = $A.get("e.force:navigateToURL");
var urlparam = "isdtp1=mn";
urlEvent.setParams({
"url": "https://ownsandbox.my.salesforce.com/_ui/chatter/service/ChatterAnswersUi"+'?'+urlparam
});
alert(urlEvent);
urlEvent.fire();
}
})
https://ownsandbox.my.salesforce.com/_ui/chatter/service/ChatterAnswersUi?isdtp1=mn
Is this is some security issue or we can have some workaround.
Thanks !