Hi,
I’ve embedded a Losant dashboard into an Experience Page, and everything works great, except for links on the Map Widget. My goal is to make it so that when clicking a GPS point, the associated device information pops up, with the title being a hyperlink to another experience page with more device-specific information. However, using just standard markdown links, it appears that the link opens inside the iframe, just covering the embedded dashboard space, instead of opening a new tab or redirecting the full page.
I’d like the link to either:
- Open in a new browser tab, or
- Navigate the parent Experience Page, not just within the embedded dashboard frame.
So far, I haven’t found an option in the Map Widget settings to set target="_blank"
or control that behavior.
Is there any workaround or built-in support for this?
Thanks in advance!
I’ve been poking for a workaround and haven’t found one yet. I will file a ticket to get that behavior fixed in the block. I think adding a target="_top"
to all non-external links and target="_blank"
to all external links would do the trick.
I will let you know if/when it is implemented. Thanks for bringing this use case to our attention.
1 Like
I’m not sure if this is what you’re looking for, but your question sparked a thought that lead me to an answer to a similar problem. I have a GPS history map with popups showing attribute data. I really wanted to have clicking on the pins to trigger a context variable change for the dashboard.
I was able to add a link to the popup context after fiddling around with markdown and handlebars for a while. (I broke this into two lines so it wouldn’t be interpreted by the forum SW as a real link.)
[{{{deviceName}}}]
(<?ctx[deviceId]={{{deviceId}}}&ctx[name]={{{deviceName}}}>)
I had to use triple braces on the handlebars and tuck the <> link syntax inside the () that is documented for the link syntax.
Clicking the link gets me the same context update that selecting a link in a Device List block does.