I use the link function to hide urls behind text in my popups. Those urls are stored in a field.
Since our migration to Portal 11.4, the link (to the field storing the url) disappears when saving the configuration window of the popup.
This only happens with new popups. Links in popups created prior to the migration to 11.4 still work. Is this a bug? Or a configuration issue in our Portal?
Solved! Go to Solution.
Well this is a bug apparently, though I experience it in Portal only, not in ArcGIS Online:
BUG-000176164 for ArcGIS Online
The proposed workaround doens't work for me, so I guess I'll have to wait for Portal 11.5 😑
I don't know but you could make a simple expression in the popup with Arcade. Something like
Title: UrlExpression
var returl = $feature.url;
return returl;
and then enter the {UrlExpression} field as the field to be used in the link . . .
Hi David, thanks for your reply, but it's the same issue, the link to the expression disappears when closing the popup window.
Many of my layers are WFS and they don't support Arcade expressions anyway.
Well this is a bug apparently, though I experience it in Portal only, not in ArcGIS Online:
BUG-000176164 for ArcGIS Online
The proposed workaround doens't work for me, so I guess I'll have to wait for Portal 11.5 😑
Hmm, @Geraldine I was convinced something like this would work in the Portal Map Viewer at 11.4, same release as you, because this is how I construct the link with the link function:
https://www.sc-pa.com/propertysearch/parcel/details/{id}
just inserting that raw string.
So I thought surely I can just re-construct this, like so
var urlpre = 'https://www.sc-pa.com/propertysearch/parcel/details/';
var urlsuf = $feature.id;
var myurl = urlpre + urlsuf;
//'https://www.sc-pa.com/propertysearch/parcel/details/{id}
Console(myurl);
//'https://www.sc-pa.com/propertysearch/parcel/details/2027070041
return myurl;
var urlpre = 'propertysearch/parcel/details/';
var urlsuf = $feature.id;
var myurl = urlpre + urlsuf;
//'propertysearch/parcel/details/{id}
Console(myurl);
//propertysearch/parcel/details/2027070041
return myurl;
I'm also experiencing this with a solution I built in 11.1.
I generate a link that combines various fields to be used in the final URL. I put the {expression/exp0} in the URL Link and it worked great.
It still works flawlessly but as you stated, as soon as I open the Text Editor all the URL's break. So I can't update anything at this point.
I tried a bunch of URL Encoding fixes and tried to trick it a few different ways with no luck yet. I plan to open a premium ticket so will post back if I hear anything.