cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChristoherMuehl Frequent Visitor
Frequent Visitor

PowerBi Embedded Open WebUrl in same Tab

Hi community,

 

I have an web application with an ambedded PowerBI report.

The report has an table which includs an web url.

If I click on this web url, the browser opens a new tab and redirect to the url.

 

Is there an option, that the url will be open in the same browser tab?

 

Thank you in advance!

 

Best regards,

Christopher

1 ACCEPTED SOLUTION

Accepted Solutions
tmeag Frequent Visitor
Frequent Visitor

Re: PowerBi Embedded Open WebUrl in same Tab

Short answer: no, it's not possible. 

 

Full version: Power BI embeds links with the target="_blank", which means that all links will be opened in a new tab. When you embed your report, you see it in an iFrame and first solution you think about is to overwrite all "target" parameters in "<a>" tags in that iFrame using javascript. But since the iFrame sits in a sandbox, the browser will not allow you to do so because of the CORS policy (the domain of your app where you embed the report is not the same as "app.powerbi.com"). 

 

Hope I have described the situation clearly enough. 

 

Kind regards

View solution in original post

1 REPLY 1
tmeag Frequent Visitor
Frequent Visitor

Re: PowerBi Embedded Open WebUrl in same Tab

Short answer: no, it's not possible. 

 

Full version: Power BI embeds links with the target="_blank", which means that all links will be opened in a new tab. When you embed your report, you see it in an iFrame and first solution you think about is to overwrite all "target" parameters in "<a>" tags in that iFrame using javascript. But since the iFrame sits in a sandbox, the browser will not allow you to do so because of the CORS policy (the domain of your app where you embed the report is not the same as "app.powerbi.com"). 

 

Hope I have described the situation clearly enough. 

 

Kind regards

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 65 members 1,133 guests
Please welcome our newest community members: