OpenWGA 7.4 - JavaScript reference

WGA
Property :

WGA.contextpath

On object WGA
Usage Offers the URL context path under which OpenWGA is reachable
Description

The context path is the first part of the URL after the server name, which is necessary to address the OpenWGA installation that the current page generated. This may be the case if multiple applications are installed on the same HTTP server and each application is addressed by specifying a special introducing context path.

On most installations OpenWGA is installed as "root application" so there is no other application installed on the server and OpenWGA does not need to be addressed via context path. In this case this property is an empty string.

Return value The context path of OpenWGA, an empty string if there is none (String)