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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 731 Beast Mode
- 55 App Studio
- 40 Variables
- 682 Automate
- 175 Apps
- 451 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 122 Manage
- 119 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 107 Community Announcements
- 4.8K Archive