I have the share widget in one of my web apps and am trying to get it to generate a link based on the querying of a feature that will zoom in to the query result when it opens. Everything is working, but when you use the link it creates, instead of zooming to the full extent of the selected feature it seems to be zooming in to the geographic center of the feature (I'm working with relatively large polygons). If you then click the "Zoom to" button on the pop up, it will pull back to the entire extent of the feature, but it doesn't do it automatically.
Is there any way I can get rid of the need for that second click and have the URL automatically go to the full extent of the feature? I attached pics as an example of what I'm seeing.