Help for web.nav.get_current_url

Sample CLI

gway web.nav get-current-url

Full Code

def get_current_url():
    """Returns the current full URL path (with querystring)."""
    url = request.fullpath
    if request.query_string:
        url += "?" + request.query_string
    return url