Incorrect Share Url when creating embed codes with…


Issue Description:
When you create embed codes with Publish to web and paste into a website, you may not get the full URL using the share button on chromium based browsers.

 

Environment:

Power BI Service version 13.0.15639.18  

 

Repro Steps:

  1. Create embed codes with Publish to web
  2. Copy the HTML and paste it into a website
  3. Open the web page with Microsoft Edge or Chrome
  4. Click the Share icon
  5. Check the Share Url

 

For example, when embedding into a web page https://www.contoso.com/example.html,  

the Share Url is displayed as https://www.contoso.com/ rather than the full URL.

 

You may test it by opening link https://community.powerbi.com/t5/Data-Stories-Gallery/COVID-19-NSW-Transport-Impact/td-p/1193474.

 

v-lili6-msft_0-1617097580407.png

 

 

Workaround: 

Since this is caused by the updated default referrer policy of third party design change (chromium based browsers), the workaround here is to use ‘no-referrer-when-downgrade’ policy in your report embed HTML. So that it will override browser’s default referrer policy.

 

<iframe width=”800″ height=”600″ frameborder=”0″ referrerpolicy=”no-referrer-when-downgrade” src=”https://app.powerbi.com/view?r=eyJrIjoiNzcxNTdlY2ItYjFhYS00YjkyLThkMmEtMTQwYjVlYzExNjA0IiwidCI6ImQyYWY4YjViLTlhN2UtNGM4NS1hM2ZkLWI2OWE2Njk4YjdkNiJ9″></iframe >

 

v-lili6-msft_1-1617097580430.png

 

 

 

 

Author: Sam Zha

Reviewer: Zoey Huan



Source link

Be the first to comment

Leave a Reply

Your email address will not be published.


*