GetSiteUrl based on if it's proxy request
This commit is contained in:
parent
487f5cb8c2
commit
b5d3995874
1 changed files with 6 additions and 0 deletions
|
@ -233,6 +233,12 @@ class UiRequest(object):
|
|||
return False
|
||||
|
||||
def renderWrapper(self, site, path, inner_path, title, extra_headers):
|
||||
def getSiteUrl(self, address):
|
||||
if self.isProxyRequest():
|
||||
return "http://zero/" + address
|
||||
else:
|
||||
return "/" + address
|
||||
|
||||
file_inner_path = inner_path
|
||||
if not file_inner_path:
|
||||
file_inner_path = "index.html" # If inner path defaults to index.html
|
||||
|
|
Loading…
Reference in a new issue