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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...