Hyperlink with Apostrophes in Popup Fail - WebAppBuilder Online

2356
3
01-15-2016 09:58 AM
KeithAnderson
New Contributor III

Folks

Customizing a Hyperlink in a Popup works great but not when your Filename includes an apostrophe.

e.g. http://library.city.gov/plats/V/Victorsen's Addition to Highlands.tif

Removing the apostrophe works but all of the filenames on the clients server have to be altered?

Ugh

Any suggestions/comments/condolences would be grateful.

Keith

0 Kudos
3 Replies
RussRoberts
Esri Notable Contributor

have you tried replacing the apostrophe with %27?

DanPatterson_Retired
MVP Emeritus

To support Russel's suggestion, this isn't the best url encoding cheatsheet but it covers some other things you may find in addresses HTML URL Encoding Reference

0 Kudos
KeithAnderson
New Contributor III

Thank you Russell.

I guess I could rename all of the files using a %27 rather than deleting the Apostrophe....but I was trying to avoid altering the file names.

I am looking for some code behind the Popup Configuration that would replace the Apostrophe on the fly in the Hyperlink.

The Silverlight Viewer handles the Apostrophe on the fly.

0 Kudos