Optional
pathname: stringA pathname to parse. Defaults to value of window.location.pathname. Note: This function does not parse full URLs. It expects only the value that would be part of the "pathname" on window.location. See https://html.spec.whatwg.org/multipage/history.html#dom-location-pathname.
Optional
contextPath: stringA context path to parse. Defaults to value returned by getContextPath.
Parses a location pathname of a LabKey URL into its constituent parts (e.g. controller, action, etc). Defaults to the current location's pathname and context path. The parsed parts of the ActionPath are URI decoded.
Example