As a production application, I had to fix the primary application...which meant just replacing the hyperlinks with static text for the popup titles.
However, I do have a test version which I am making public, as it shows the same issue. If you zoom into downtown Dover, DE and click a spot, our Delaware locator should be able to find a valid address. The returned districts show the html text for each layer, as opposed to a hyperlink.
TRIAL HTML POPUP - 2022 Districts Lookup Tool
As for how the popup titles are set up in the underlying map, some are just regular hyperlinks, but some do use the field names to help format the html hyperlink. The html is long, but here is how it looks for the Municipal Officials layer (2 pics to view the entire html):
Here's how the URLs are set for each layer:
- Layer 1 - static URL to our Delaware FirstMap REST Services for political boundaries
- Layer 2 & 3 - references field with URL of elected officials
- Layer 4 - references field with URL of the county
- Layer 5 - references field with school URL for the school district
I do use custom Arcade Expressions to format the text of the popup, and they look perfect (but neither of them are a hyperlink). For this TEST tool, I did add the exact same hyperlink htmlto the 2nd layer for Senate District, and that seems to work okay within the popup text.