My Government Services - Links issue

856
4
05-25-2017 04:05 PM
AllenScully
Occasional Contributor III

We have an app up using My Government Services and are seeing some odd behavior with one of our links.  In one of our operation layers, we have a link set up that is essentially just referencing a URL field in a feature class.  Those URLs are valid and correctly formatted (https://wwww.myorg.com/...).  However when clicking on the link via the application, it fails, with different results depending on the browser being used.  

In Chrome, the link that opens in a new tab is "https//www.myorg.com/..." - essentially omitting the needed colon after 'https'

In Firefox, it's weirder - the link that it tries to go to is "www.https.com//www.myorg.com/..."

In IE 11, the link shows as "http://https//www.myorg.com/..."

So the application and/or browsers are attempting to add or modify the URL, which doesn't need to happen.

Here's the link code for the particular operational layer in question - hasn't been modified recently, and the URL field values haven't changed.  I'm stumped.

Links: [{
DisplayText: "Website",
FieldName: "URL",
type: "web"

0 Kudos
4 Replies
AllisonMuise1
Occasional Contributor III

atscully‌: Any chance you can share the URL to your app?

0 Kudos
AllenScully
Occasional Contributor III

Hi Allison! Thanks for the response.  Here's the app URL - the link in question is under 'property owner'.

https://maps.tucsonaz.gov/zoombiz/ 

0 Kudos
AllisonMuise1
Occasional Contributor III

Allen Scully‌: I am seeing this behavior as well.

Looking at your config and services, everything appears to be fine, but I have a theory as to what might be happening.

This is an old version of the My Gov Services app, and I suspect that when we wrote this, it was before https was very prevalent. It might be that the app is looking for values that start with http://, and if the value in the field doesn't start with that, it's appending it to the beginning.

To test this theory, could you perform the following tests and answer the following questions?

  1. Is the property owner service the only one that has urls in the URL field that start with https://?
  2. Could you try removing the https:// from the start of the value in the URL field of the Property Owner service? I suggest testing just one property to start.
  3. Refresh the app and locate the property with the updated URL. Does the updated link work?

-Allison

As a side note:

If you are interested in updating to the latest My Gov Services, which is a configuration of Web AppBuilder, you (or others who come across this post) can find it here: My Government Services | ArcGIS for Local Government 

AllenScully
Occasional Contributor III

Thanks Allison -

The odd part is that several of the other URLs are formatted the same way (https://www.tucsonaz.gov...) and they work correctly. 

We've been meaning to migrate this one to the new W.A.B./ Near me widget based version anyway, so I think I'll do that now instead of chasing this down too much further.

Allen

0 Kudos