In the 4.3 version of the JS API, I can't format the hyperlinks within a popup to open. They open if you right click > open in new tab, but not just left clicking on the text itself. Below is the code I'm using for the template.
var annexationTemplate = {
title: "{ANNEX}",
content: "<strong>Ordinance:</strong> {ORD}" +
"<br /><strong>Effective Date:</strong> {DATE:DateFormat(selector: 'date', fullYear: true)}" +
"<br /><strong>Annexation Map: </strong><a target='_blank' href={URL_MAP}>Annexation Map</a>" +
"<br /><strong>Legal Description: </strong><a href={URL_DESC}>Legal Description</a>"
};
Anyone else come across this issue? It's new to me in 4.X. My previous apps build in 3.X have worked fine.
Nathan,
Strange when I add
<a target='blank' href='{POP2010}'>Legal Description</a>
to the:
popuptemplate in the above sample it has a link that works fine for me.
Thanks for the reply, Robert.
I gave this to a few users to test and they didn't seem to have any issues with it. It must be how I have something configured on my computer as it doesn't work with any Internet browser.
Nathan,
Which browser and which version?
My default is Chrome v57.0.2987.133. I've also tried Internet Explorer v11.953.14393.0 with no luck either.
Nathan,
Strange indeed. I have no problem with that version of chrome.
Nathan,
I am having this same problem. Did you ever figure out how to resolve it?
Ryan,
No, I haven't figured out why it isn't working on my machine. It works on just about every other one I've tried, but not mine. I'm sure it's just some advanced configuration I changed a long time ago for some reason and now I don't remember where it is to change it back.
If I figure it out, I'll let you know.