@staticmethod<EOL><INDENT>def get_self_url(request_data):<DEDENT>
self_url_host = OneLogin_Saml2_Utils.get_self_url_host(request_data)<EOL>request_uri = '<STR_LIT>'<EOL>if '<STR_LIT>' in request_data:<EOL><INDENT>request_uri = request_data['<STR_LIT>']<EOL>if not request_uri.startswith('<STR_LIT:/>'):<EOL><INDENT>match = re.search('<STR_LIT>', request_uri)<EOL>if match is not None:<EOL><INDENT>request_uri = match.groups()[<NUM_LIT:0>]<EOL><DEDENT><DEDENT><DEDENT>return self_url_host + request_uri<EOL>
Returns the URL of the current host + current view + query.

:param request_data: The request as a dict
:type: dict

:return: The url of current host + current view + query
:rtype: string