I'm uploading a map from Pro to Online in which most popups have a URL link. All the links are external to our organization, but some of the PDFs have spaces in the URL (bad practice) so while the link works in Pro, it doesn't work in AGOL. This post ArcGIS Online attribute hyperlink is not reading the space in URL, how to fix? asks the same question for internal PDFs, but the two answers don't apply. Answer 1 is a tool for batch fixing URL's, but since the PDFs in my map are not internal files this doesn't work. Answer 2 instructs the user to go to Map Viewer Classic -> Popup -> Popup Media -> Add -> select "link". This option no longer exists in Map Viewer Classic
The other option I've found is to create a new field using Arcade How To: Add PDF files as hyperlinks in ArcGIS Online Map Viewer pop-ups but I don't know Arcade and I'm having trouble understanding the instructions. I don't know if it matters, but not all the links are broken and not all of them are PDFs.
Is there a way to fix this in Map Viewer? Why do the links work in Pro but not AGOL? Do I have to go into my data and get new links?