Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hhernandez27
New Member

changing share URL on power bi report that is embedded in public site

Hello,

 

Is it possible to change the "share URL" on a Power BI report that is embedded on a public website? currently the share URL displays the parent site but I would like it to display the site that the Power BI report is embedded on.

 

thanks,

powerbi_share_URL.PNG

 

Hector

10 REPLIES 10
Petja
Advocate II
Advocate II

Has anyone found a working solution for this?

agnes_ee
Frequent Visitor

You can add referrerpolicy Attribute to the iframe: https://www.w3schools.com/tags/att_iframe_referrerpolicy.asp.

 

To share the link of the child page the report is on use “no-referrer-when-downgrade” like this:

 

<iframe referrerpolicy="no-referrer-when-downgrade" width="600" height="373.5" src="https://..." frameborder="0" allowFullScreen="true"></iframe>

I added the referrerpolicy attribute with the no-referrer-when-downgrade value to the iframe and it did not change the share URL, although setting it to no-referrer takes the same link that the iframe uses as src

mattww
Responsive Resident
Responsive Resident

Has anyone found a solution to this? I am encountering the same issue with the share URL being trimmed to be just the domain of the site the report is embedded in. It's a WordPress site so I don't know if that is common with the issue encountered by @hhernandez27 

 

If the report is accessed directly (i.e. not via the iFrame) the share links work fine, so it appears something is being passed through the iFrame to override the share URL

v-yetao1-msft
Community Support
Community Support

Hi @hhernandez27 

Is your URL on the embed report interface, right ?

Ailsamsft_0-1625813914401.png

If you are talking about this URL, that is it. This is the website where the Power BI report is located . This is the result after I opened the URL .

Ailsamsft_1-1625813914408.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank you. yes that is the "share URL" i am talking about, which is on the embed report interface. However, the "share URL" on my embed report interface is  https://www1.nyc.gov/ but my embed report is located at https://www1.nyc.gov/html/dot/html/about/datafeeds.shtml#trafficcounts. The "share URL" should be https://www1.nyc.gov/html/dot/html/about/datafeeds.shtml#trafficcounts and not https://www1.nyc.gov/ . see below. are you saying i cannot change the "share url" to https://www1.nyc.gov/html/dot/html/about/datafeeds.shtml#trafficcounts??

Capture.PNG

v-yetao1-msft
Community Support
Community Support

Hi @hhernandez27 

When you click share in report , you will see copy link in the "share URL" popup ,after you clicking “Copy link ”,you will see the share URL . This is provided directly by the Power BI Service, and there is no way to modify it

Ailsamsft_0-1625635893955.pngAilsamsft_1-1625635893956.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Ailsa,

 

i think there might be some confusion. I dont mean the share URL to embed the report somewhere or the URL to share the report as you are thinking of. I mean the URL in the popup of the image below which is https://www1.nyc.gov/. I circled the URL I am speaking of in a red circle in the image below. Can I change https://www1.nyc.gov/ to https://www1.nyc.gov/html/dot/html/about/datafeeds.shtml#trafficcounts , which is the website of where the power BI report exists? thanks,

Capture.PNG

v-yetao1-msft
Community Support
Community Support

Hi @hhernandez27 

You cannot change the URL for the shared report . The URLs for the shared report and embedded report are also different .In Service , Sharing and embedding belong to two different functions .

Ailsamsft_0-1625449449350.png

Ailsamsft_1-1625449449352.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

There is still a bit of confusion here

 

The query is not about changing the share URL, it's that when a report is embedded (e.g. Publish to Web) the share buttons such as for Twitter and Facebook have a trimmed URL behind them. This is an issue for the end user, not anything in the Power BI Service 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors