Dashboards & Visualizations

Drilldown to Urls from a lookup table

bblack1346
New Member

So I have a lookup table that consists of some URLS to other dashboards as well as other environment pages (the complete urls). I've coded a table to show the specific Application that the user has selected (from a separate input token). When the user clicks that row of the table, the user is supposed to be navigated to the url from the lookup table, but the url is altered in the browser the inclusion of different characters like "%" or 20's. Can someone please explain how to keep the browser from altering the exact url that I'm getting from the lookup table?

Thanks in advance

Tags (1)
0 Karma

anthonymelita
Contributor

It sounds like you're seeing standard HTML URL encoding. For example %20 replaces a [space] character
www.w3schools.com/tags/ref_urlencode.asp

This is expected behavior and your urls may not even work if not for the encoding. For example type https://www.splunk.com/dog cat into your browser bar. It will automatically encode as https://www.splunk.com/dog%20cat

0 Karma

bblack1346
New Member

I understand URL encoding and I also understand that it's what's changing the URL, but when I hardcode the URL into my sourcecode instead of use the lookup table value the URL stays exactly the same. I guess my question is, how do I use some sort of token/lookup table solution without having to hardcode the URL's without URL encoding altering it?

0 Karma

bblack1346
New Member

Currently (just to put a solution in place) I'm hardcoding most of the URL but adding a token to put the App context in place. Ex: app/itsi/dashboards

Where "itsi" is a token from my lookup table. I was hoping to simply have the whole URL in the lookup table cell and navigate to pages outside Splunk as well.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...