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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive