Share button in a Collection produces mini URL that does not work, long copy/pasted Link works.

606
2
01-16-2024 06:20 PM
GregoryLund2
New Contributor III

My students have created ArcGIS Online Collections, and have been directed to use the 'Share' icon to create a short url for their collection, to add to their Resume, etc.

share.png

This example produces this link: https://arcg.is/1PnLfX

Which results in this 'error':

error.png

At first I thought it was the permissions, but when I copy the students 'Long URL' from the Collection:

https://storymaps.arcgis.com/collections/566bdc6433f94e1caf9761b418ce4f54

It works perfectly fine.

All this was done using Mozilla Firefox, latest edition. 121.0.1 64 Bit on Windows 11.

Also Tried in the latest version of Chrome.

(IE and 'Edge' are not installed on my machine... because... why would they be?)

Saving/Re-saving, shutting down, etc. didn't work.

I tried searching for a solution but didn't find any.

Thanks for the help.

<EDIT> It should be noted that this only happened to 15% of my students, the rest worked</EDIT>

Regards,

Gregory Lund

0 Kudos
2 Replies
RhettZufelt
MVP Frequent Contributor

Don't know the solution to the collections share link, but you can always run the same utility it is 'supposed' to use and generate a valid short url.

https://arcg.is/prod/shorten?longUrl=https://storymaps.arcgis.com/collections/566bdc6433f94e1caf9761b418ce4f54

Generates:
{"status_code": 200, "status_txt": "OK", "data": { "long_url" : "https://storymaps.arcgis.com/collections/566bdc6433f94e1caf9761b418ce4f54", "url": "https://arcg.is/1rX0iK", "hash": "1rX0iK", "global_hash": "1rX0iK", "new_hash": 0 } }

And this part of it is the short link:

https://arcg.is/1rX0iK

Just put the long URL after the longUrl= and submit.  the short URL is after the "url:"

 

R_

GregoryLund2
New Contributor III

R_,

Great idea, I'll give this a try.
Still hoping to hear the diagnosis of the main issue, but this is a good fix (along with using the Long (copy/paste) URL, or bitly, for that matter.

Gregory

0 Kudos