Get path full

From Kolmafia
Revision as of 22:53, 26 November 2014 by imported>Wrldwzrd89 (This AGAIN?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

string get_path_full()

When called by a relay override script, this returns the full URL that was submitted in the relay browser.

Code Sample

Print path information about how the current override was called.

print( "This script was called by the URL: " + get_path_full() );
if( get_path_variables() != "" ) {
   print( "Which is composed of the page name: " + get_path() );
   print( "followed by a question mark and the variables: "+ get_path_variables() );
}

See Also

form_fields() | get_path() | get_path_variables()

Special

When this function is called by any script that is not a relay override, it returns an empty string.