URL's in DDX bricks aren't clickable?
Is there a reason why default HTML syntax for links is not working in DDX bricks? Clicking on hyperlink or hyperlinked images doesn't open anything. I see the link appear when I hover over the element but nothing happens when I click ... I need to right-click to open the image or link in a new tab.
Strange that the standard syntax works in an HTML table but I can' get it to work in a brick?
Best Answers
-
After whitelisting the domains got this to work.
function navigateToUrl() {
let value = document.getElementById('hyperlink').href;
domo.navigate(value,true);
};
Still no solution for mailto's 😥
0 -
Mailto links were blocked somewhat recently by the browsers and we have plans to allow for setting the frame rules to allow them in the future. Normal links are restricted by the whitelist for security purposes.
0 -
It has to do with the frame the apps use. We are blocking certain things for security reasons and mailto has recently been included into one of the things being blocked.
0
Answers
-
are you using the domo javascript function
javascript:domo.navigate('');
1 -
Trying that now but seems to be limited to domains that are whitelisted and doesn't work for mailto.links.
0 -
After whitelisting the domains got this to work.
function navigateToUrl() {
let value = document.getElementById('hyperlink').href;
domo.navigate(value,true);
};
Still no solution for mailto's 😥
0 -
Mailto links were blocked somewhat recently by the browsers and we have plans to allow for setting the frame rules to allow them in the future. Normal links are restricted by the whitelist for security purposes.
0 -
@JosephMeyers I have built websites that use mailto links and they are still working fine in Chrome and on iOS. Is this an issue with specific browser settings?
0 -
It has to do with the frame the apps use. We are blocking certain things for security reasons and mailto has recently been included into one of the things being blocked.
0 -
Thanks for clearing that up @JosephMeyers - makes sense now.
The initial approach for the function was behaving inconsistently and wouldn't always work even with the domain being whitelisted so we came up with a different solution by removing the href from the html element and passing the url in the onclick.
function navigateToUrl(url) {
domo.navigate(url, true);
};
<img class="icons"
onclick="navigateToUrl('add url here');"
src="link to image file">
0
Categories
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 473 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 478 Datasets
- 212 Visualize
- 258 Beast Mode
- 2.1K Charting
- 12 Variables
- 19 Automate
- 356 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 247 Distribute
- 63 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 184 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive