The getCurrentApp() method gets the current app name as stored in the DOM, which is not the friendly name, or label, of the current app.
app = Splunk.util.getCurrentApp()
|
String |
Current app name or UNKNOWN_APP , if app name is undefined in the DOM. |
document.location = Splunk.util.make_url('app', Splunk.util.getCurrentApp());