All Apps and Add-ons

URL rewrite not properly handeled

SandrinoCostant
New Member

Splunk web is configured to be accessed trough sso kerberos (mod_auth_kerb)

It work perfectly well, but some part of the application are not properly rendered.
when we click on some link a blank page is displayed instead of the expected result.

As i was observing what was going on i remarked the following :
When we select the application on the home page, the URL accessed by the browser is in the form:
http://search.domain.local/en-GB/ app /splunk_app_windows_infrastructure.

Then the Splunk Web (behind the scene ) rewrite this in the form
http://search.domain.local/ dj /en-GB/app/splunk_app_windows_infrastructure.

It inject a dj word in front of the relative URI.

My problem is that it does this only once (when I land on the homepage of the app).

All the view of the app are functional if we properly enter the URI manually (with the dj ango acronym in the middle)

The default navigation xml use relative URI without the in between dj word alt text

And when i select any link, Splunk web doesn't do its magic trick of injecting the dj word anymore
instead a blank page is displayed (without error)

Before I start to fix the various link in the default navigation , does someone has a clue on why the dj injection work only once ?
And does someone know why this application is doing this ?

0 Karma

TrevorW2000
Explorer

The problem is that Internet Explorer doesn't support a JavaScript method (startsWith) that is used to do the redirect. It should work in Chrome or Firefox. You can also make it work in IE by adding a script to override the startsWith function.

More details here: http://stackoverflow.com/questions/30867172/code-not-running-in-ie-11-works-fine-in-chrome

The file you would need to edit is splunk_app_windows_infrastructure\appserver\templates\navredirect.tmpl.

I made the change to the JavaScript and it now works fine in Internet Explorer.

0 Karma

scottshaw
New Member

I have just updated the Windows Infrastructure app to the latest version and noticed the same problem. It worked fine but when I re-ran the setup within the app the links developed the above problem.

On a separate server if I did the Update to the Windows infrastructure app but did not run the setup the pages continued to work ok.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...