title: Can not change _TOP target on links in reports from SharePoint 2013 / SSRS ( GO TO URL )
body: <p>We have SharePoint 2013 with Reporting Service add on.</p>
  
  <p>We have ERP that can run SSRS reports in an IFRAME.</p>
  
  <p>The ERP dns is ERP.OURDOMAIN.COM and SharePoint is SP.OURDOMAIN.COM</p>
  
  <p>I have reports that has Go To URL Action to ERP.</p>
  
  <p>Problem is that we need to open the link in a new window or into the IFRAME.</p>
  
  <p>This would work with TARGET=_BLANK or eg. TARGET=_erpIFrame.</p>
  
  <p>The problem is that for some reason SSRS adds TARGET="_TOP" to the Go To URL.</p>
  
  <p>I tried to use javascript to open the link eg.</p>
  
  <pre><code>    javascript:void(window.open('http://erp.ourdomain.com/default.aspx?ProjectCode=12345','_blank'))
  </code></pre>
  
  <p>The link works fine when I run it directly from the SharePoint 2013 report library.</p>
  
  <p>But when report runs inside IFRAME in ERP server the link does not work at all.</p>
  
  <p>When I click on the link nothing happens.</p>
  
  <p>I do not know if it is the IFRAME and domain names that causes some IE11 security blocking. Or the fact that the link in HTML source looks like :</p>
  
  <pre><code>    &lt;a tabindex="1" class="A45592b6319f04852ae690abb779bfb4393a" href="javascript:void(window.open('http://erp.ourdomain.com/default.aspx?ProjectCode=12345','_blank'))" target="_top"&gt;12345&lt;/a&gt;
  </code></pre>
  
  <p>Note that the last target="_top" is added by SSRS and I can not find any way to tell SSRS not to add it.</p>
  
  <p>If I use a normal link <a href="http://erp.ourdomain.com/default.aspx?ProjectCode=12345" rel="nofollow">http://erp.ourdomain.com/default.aspx?ProjectCode=12345</a> the link opens in _TOP and removes ERP navigation.</p>
  
  <p>I also have tried adding target='_blank' in the report URL eg.</p>
  
  <pre><code>    http://sp.ourdomain.com/_layouts/ReportServer/RSViewerPage.aspx?rc:LinkTarget=_blank&amp;rv:RelativeReportUrl=/Reports/report.rdl
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>    http://sp.ourdomain.com/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/Reports/report.rdl&amp;rc:LinkTarget=_blank
  </code></pre>
  
  <p>But when I check the HTML source code on the report the link always has target="_top"</p>
  
  <p>So the rc:LinkTarget has no effect.</p>
  
  <p>Please help, is there no way to get this to work?</p>