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
web.nav.get_current_url
gway web.nav get-current-url
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