URL Hyperlink adding additional characters after ampersand

570
0
01-18-2024 09:01 PM
Kbray_gis_
New Contributor II

I'm currently setting up pop-ups in Map Viewer that have a url hyperlink that opens up our property system.

These work within map viewer classic, however when migrating these over to the new map viewer it appears to add additional characters into the URL as your about to click.

The URL is made in arcade and looks like the following:

var url = 'pathway://XXXX/XXXXX/display?enquiry=1&tpklapclas=297&tpklapappl=' +$feature.tpklapappl

return url

it then returns the expected output, and this works when clicking on it in map viewer classic and launches the program,

however when i have the same popup in the new map viewer, it adds additional characters after the ampersands which then stops it from opening the program to the correct record it looks like the following when you hover over it:

pathway://XXXX/XXXXX/display?enquiry=1&tpklapclas=297&tpklapappl=' +$feature.tpklapappl,

The link at the moment is set up on an image in the popup that you click on, this was the same for map viewer classic,

Is there a way to have it remove the #38; from appearing? it doesn't turn up when testing,

Kind regards

Keiran

0 Kudos
0 Replies