Forum Discussion
Hyperlink not clickable with custom visual.
It is because of sandboxed iframes are blocking this behavior
When clicking hyperlink:
Blocked opening url in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.
When embedding in iframe:
Refused to display url in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Hey Vincent, Thanks for the reply.
Is there any alternative to this. How come the exiting table control render link tag when the column is "Web Url"? Any Idea?
Thanks.
- vincent_123410 years agoHelper I
I have not found any alternative.
Native visuals can use urls because they are not sandboxed in iframes.
I understand Microsoft does this for safety so improper developed custom visuals can't collide but it would be nice if we wern't limited in functionality.
- dhavalu10 years agoFrequent Visitor
Yes. There are certain restrictions with the desktop version and web version like link, loading scripts etc.
Thanks for the insight.
- dhavalu10 years agoFrequent Visitor
Desktop Power Bi restricts hyperlinks.
Below code works for Power Bi Web.
var val = 'https://powerbi.microsoft.com';
tr.append("td").append("a").attr("href", val).attr("title", val).attr("target", "_blank").text(val);
Make sure that url is valid http or https protocol. Without the protocol the link would try searching within subdomain of https://app.powerbi.com and the page wont get displayed.
Try this out.