Dashboards & Visualizations

Splunk drilldown open two tabs instead of one

LearningGuy
Motivator

Hello,

Why does Splunk drilldown open two tabs instead of one?
Here's my setting:
Image => Drilldown settings => On click link to custom URL => put URL
When I clicked it opened two tabs

If found old post, but nobody answered.   Please help.  Thanks
https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Splunk-drilldown-setting-opening-tw...

Labels (2)
0 Karma

LearningGuy
Motivator

@ITWhisperer @gcusello 
Do you have any ideas on how to fix this?  Thanks

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please share the source code of your dashboard in a code block </>

LearningGuy
Motivator

Hi @ITWhisperer 
Here's the code:    Thank you so much

{
    "type": "splunk.singlevalueicon",
    "options": {
        "showValue": false,
        "icon": "splunk-enterprise-kvstore://12345abcdefg"
    },
    "eventHandlers": [
        {
            "type": "drilldown.customUrl",
            "options": {
                "url": "/splunk/app/test_app/second_dashboard?form.student_token=$student_token$",
                "newTab": true
            }
        }
    ],
    "context": {},
    "showProgressBar": false,
    "showLastUpdated": false
}

 

LearningGuy_0-1729045910393.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please share the source code of your dashboard in a code block </>

LearningGuy
Motivator

Hello @ITWhisperer ,

I shared the screenshot and Step by step in the reply to @gcusello 

 

/splunk/app/test_app/classicdashboard?form.student_token=$student_token$

 

 

 

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

hi @LearningGuy ,

could you better describe your issue?

eventually attaching some screenshot, because I don't understand this behavior.

Ciao.

Giuseppe

LearningGuy
Motivator

Hello @gcusello , 
Here's the screenshot and steps
Thank you in advance

On Dashboard Studio 
1) Put an icon and go to configuration

LearningGuy_2-1707494174345.png
2) On configuration, I set a link to a second dashboard (classicdashboard)

LearningGuy_1-1707494031977.png

 

/splunk/app/test_app/classicdashboard?form.student_token=$student_token$

 

3) Go to View mode and click the Icon
It opened 2 tabs, instead of only 1

LearningGuy_3-1707494507305.png

 

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @LearningGuy on the step 2, pls uncheck the "Open in new tab". sometimes this creates the 2 tabs. 

thanks. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

LearningGuy
Motivator

Hi @inventsekar ,

If I uncheck open in new tab, it will not open a new tab and use the current tab.
My goal is to open a new tab, but only one, not two.   Thank you

LearningGuy_0-1729045955908.png

 

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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

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, ...