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
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive