Linking out of a report add-on?

I have made a custom report that summarizes trend information. Jira has some out of the box reports that provide detailed information that I would like to allow the user to click through to see. However, due to the reports being rendered in an iframe, I’m not able to build the URL properly. It tries to use the URL of where it’s deployed (e.g. http://herokuapp.com/AGILE-REPORT instead of http://jirainstance.atlassian.com/AGILE-REPORT). I feel like there’s something super basic that I’m missing but can’t quite seem to figure out what. Anyone have suggestions?