Application Framework Reference

Splunk API

redirect_to()

The redirect_to() method is a window.document.location wrapper.

Synopsis

Splunk.util.redirect_to( uri , options , windowObj , focus )

Parameters

uri

String

Location to redirect to.

options

Object

Redirection options:

sid = Attaches optional sid in valid format.

s = Attaches optional saved search name.

q = Attaches optional search string in valid format.

windowObj

Window Object

(Optional) Window object to target the location change.

focus

Boolean

Window receives focus indication:

true = New window receives focus.

false = New window does not receive focus.

Return Value

Undefined

Example

Splunk.util.redirect_to(['app', Splunk.util.getCurrentApp(), '@go'].join('/'), \
                        {'sid': '12345678901.123'});
 

See Also

make_url()