Select to view content in your preferred language

Links in popups don't work since migration to Portal 11.4

400
5
Jump to solution
05-05-2025 07:05 AM
Geraldine
Regular Contributor

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?

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Geraldine
Regular Contributor

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 😑

View solution in original post

0 Kudos
5 Replies
DavidColey
MVP Regular Contributor

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 . . .

0 Kudos
Geraldine
Regular Contributor

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.

0 Kudos
Geraldine
Regular Contributor

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 😑

0 Kudos
DavidColey
MVP Regular Contributor

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;
 
and then for the Text Editor Link function pass in:
{expression/expr0}
 
which produces:
 
but then like you said the link function thinks its a link but its not.  It goes away because for whatever reason its not encoding the url properly. 
 
So I tried shortening the urlpre var to:
 
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;
 
and then in the Text Editor Link Function construct it like:
 
 
 and then that works.  It returns like:
 
 
Where the '/ ' forward slashes get returned as url encoded %F
 
Pain in the butt and it only works if your prefix can remain the same.  I even tried setting up my urlpre var as fully encoded like:
 
https%3A%2F%2Fwww.sc-pa.com%2Fpropertysearch%2Fparcel%2Fdetails%2F
 
and it still didn't work.  
 
 
 
 
 
 
 
0 Kudos
DougYurek
Occasional Contributor

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. 

 

0 Kudos