I have a Lightning Component which has an iframe. The src of the iframe is the URL of a report to which a "fv" parameter is passed. The component is within an Account Lightning page, on a tab which is not the first tab in the display. The issue is that as soon as the Lightning page for the Account loads, it redirects the whole page to the src of the iframe. I want the report (associated with the URL of the iframe src) to display on the iframe when the tab is selected, I do not want the report to replace the whole page. How can this be done?
Here's the code for the component:
<aura:component implements="force:lightningQuickAction,force:hasRecordId,force:appHostable,flexipage:availableForRecordHome,force:hasRecordId,force:hasSObjectName" access="global" >
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<aura:attribute name="recId" type="String"/>
<iframe aura:id="vfFrame" src="{!'/lightning/r/Report/00O23000000GyO3EAK/view?fv4='+v.recId}" />
</aura:component>