Dashboards & Visualizations

HTML HREF in a View

DTERM
Contributor

I've got the following code in a view. Everything appears to work fine, except when I click on the HREF to connect to another web site, The link it does not work. The address is correct. I can place the address in a browser and it will work. Why not in a view? Thanks in advance.

<module name="HTML" layoutPanel="viewHeader">
<param name="html"><![CDATA[
<h1 align="center">Customer Activity</h1>
<h2> bla bla</h2>
<h3> more bla bla</h3>
<a align="right" href="http://10.14.53.50:8000/en-US/app/prod/about_dashboard">Client Home</a>
<br>
odalsfaslj saljdfasjf
]]></param>

Tags (1)
0 Karma
1 Solution

Drainy
Champion

I recall having some issues with the way Splunk handles URLs when I was doing some development, try changing the URL to;

/en-US/app/prod/customer_activity

Assuming it is on the same index of course. This is how I appear to have handled all my explicitly defined links in a serversidehtml include on my views.

View solution in original post

0 Karma

Drainy
Champion

I recall having some issues with the way Splunk handles URLs when I was doing some development, try changing the URL to;

/en-US/app/prod/customer_activity

Assuming it is on the same index of course. This is how I appear to have handled all my explicitly defined links in a serversidehtml include on my views.

0 Karma

sideview
SplunkTrust
SplunkTrust

Note that whenever you're linking from another page in the same app you can just put href="customer_activity" and you don't need to use a full root-relative URL.

0 Karma

DTERM
Contributor

There was a typo in the code. Got it. Thanks.

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