Skip to content

Commit

Permalink
RenderWrapper with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 11, 2017
1 parent b5d3995 commit 545459b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ui/UiRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def getSiteUrl(self, address):

address = re.sub("/.*", "", path.lstrip("/"))
if self.isProxyRequest() and (not path or "/" in path[1:]):
file_url = re.sub(".*/", "", inner_path)
file_url = re.sub("^.*?/", "", inner_path)
if self.env["HTTP_HOST"] == "zero":
root_url = "/" + address + "/"
else:
Expand All @@ -268,6 +268,8 @@ def getSiteUrl(self, address):

if self.env.get("QUERY_STRING"):
query_string = "?%s&wrapper_nonce=%s" % (self.env["QUERY_STRING"], wrapper_nonce)
elif "?" in inner_path:
query_string = "&wrapper_nonce=%s" % wrapper_nonce
else:
query_string = "?wrapper_nonce=%s" % wrapper_nonce

Expand Down

0 comments on commit 545459b

Please sign in to comment.