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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...