I'd like to be able to screen pop a record (that has my lightning app builder page associated with it) and have my custom components on that page read query parameters off the screen popped records URL.
I have tried the following for popping the record
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "/lightning/r/Contact/003S000001MOoR8IBL/view?dynamicId=" + id
});
urlEvent.fire();
and reading it in the component embedded in the record page using
window.location.search // returns undefined, dynamcidId=... expected
Unfortunately this returns 'undefined' as the query parameters weren't passed along. If I can't use query parameters is there another mechanism I can achieve this with?
There is some JS that will be invoking this screen pop and only it will know what data belongs to the screenshot. This data can't be configured ahead of time using the design attributes of the lightning component. I think.
Thanks for the help!