Select to view content in your preferred language

Getting Around URL Verification For Building Links

416
0
02-06-2024 11:17 AM
JeffreyThompson2
MVP Regular Contributor
4 0 416

I just found a silly little workaround for a small problem. Perhaps too small for this blog, but someone will probably find this useful one day.

I am trying to build a link to a page on an internal server. It's not exactly formatted like a standard URL. Let's say it looks like, https://internal/site. I can type this into my browser and it works just fine. But when I try to make a link with a Text or Button Widget, I get an error and Experience Builder won't allow me to click OK.

JeffreyThompson2_0-1707246482857.png

I assume Experience Builder is using regex to validate the address and is rejecting it because it lacks a high level domain, like .com or .org. (If that doesn't make sense to you, don't worry about it.)

So what can I do? Connect my widget to data. What data? It doesn't matter. I'm not going to use it. Now that I am connected to data I get a slightly different Set Link settings panel and this one doesn't reject my non-standard URL. And my link works just fine.

JeffreyThompson2_1-1707247002343.png

About the Author
A frequently confused rock-hound that writes ugly, but usually functional code.