Dashboards & Visualizations

HTML HREF in a View

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

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

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

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

Contributor

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

0 Karma