Dashboards & Visualizations

How maintain a session variable using the nav bar

Federica_92
Communicator

Hi everyone, I have one javascript value, how can I pass this value via URL?
Like /page2.html?source=myvalue, so from the home page, I have the value "token_safe" and I would like to send this value to the page2.html, and the link for the page 2 is saved in the folder nav in the default.xml:
To be clearer, this is the default.xml page, with the navigation menu:

 <nav color="#9F000F">
   <view name="default" default="true"/>
     <a href="dj/mynewapp/home/">Home</a>
 <collection label="Menu">
    <!-- Add menu items with <a> links -->
    <a id="file" href="/dj/redirector/mynewapp/pythondemo">File</a>
    <a id="network" href="/dj/mynewapp/network">Network</a>
    <a id="classlink" href="/dj/redirector/mynewapp/new">Classlink</a>
    <a id="throwable" href="/dj/redirector/mynewapp/new">Throwables</a>
    <a id="reflection" href="/dj/redirector/mynewapp/new">Reflection</a>
      </collection>

And I would like have :

File

And my variable is stored in home.html

 variable="something"

And I m looking for doing:

/page2.html?sourceype=variable

masonmorales
Influencer

page2.html?source=$taken_safe$

0 Karma

Federica_92
Communicator

Yes, but the link is in another page, is in the default.xml, In that page I have not the value of the tokensafe

0 Karma

rroberts
Splunk Employee
Splunk Employee

Are you trying to embed the javascript in the default.xml file?

0 Karma

Federica_92
Communicator

How can I do it? Thank you

0 Karma
Get Updates on the Splunk Community!

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

Unlock Instant Security Insights from Amazon S3 with Splunk Cloud — Try Federated ...

Availability: Must be on Splunk Cloud Platform version 10.1.2507.x to view the free trial banner. If you are ...