Select to view content in your preferred language

Share Widget not honoring URL parameters when sharing

221
4
2 weeks ago
Labels (1)
CiarainSheridan
Emerging Contributor

Since the update to AGOL I have noticed the Share widget in my experience does not honour the URL parameters when a number a layers are selected in the layer list and I attempt to share it with a colleague. 

CiarainSheridan_1-1751553751578.png

 

Tags (1)
4 Replies
Shen_Zhang
Esri Contributor

The short link can only be generated when the URL length is less than 2,000 characters. Otherwise, the "URL is too long" warning will appear, and the short link cannot be retrieved. Did you see the warning with an app link which used to work before the release? If it were the case, please share the link if possible so we can have a look.

Shen Zhang
0 Kudos
CiarainSheridan
Emerging Contributor

No ive only noticed this since the release. But when users turn on a number of layers and share the app link most of the layers turned on do not stay on.

https://experience.arcgis.com/experience/d6a5117983a54b55804d74c5e5a29f4c 

0 Kudos
Shen_Zhang
Esri Contributor

It seems the issue comes from the "Historic Features". Once you modify any layer visibility in the Map Layers widget, the visibility info of all the layers and sublayers in the Historic Features group is added to the URL, making it too long to generate a short link.

The visibility of the layers in this group is not right, and I cannot reproduce the issue with any other layer from my end. Could you confirm if it works well before the June release? I did some investigation, and the issue with this group layer should have been there for a while, at least over a layer. 

Shen Zhang
0 Kudos
CiarainSheridan
Emerging Contributor

https://experience.arcgis.com/experience/d6a5117983a54b55804d74c5e5a29f4c?org=osi#widget_11=layer_vi...

That is an example of the long URL. A number of layers are selected which are not the 'Historic Features' group and when you select it the only one which appears is the 'Townlands' at the top of the layer list. The basemap that was selected also changes back to default.

That doesn't seem to be right as in the old web app builder all layers selected carry across correctly when sharing the URL parameters. 

Thanks

0 Kudos