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.

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

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...