Browse Source

A 404's redirect now keeps the FQDN in place

pull/311/head
sanderjo 10 years ago
parent
commit
5ed9f6f30c
  1. 1
      SABnzbd.py
  2. 5
      sabnzbd/panic.py

1
SABnzbd.py

@ -1552,7 +1552,6 @@ def main():
else:
browser_url = "http://%s:%s/sabnzbd" % (browserhost, cherryport)
sabnzbd.BROWSER_URL = browser_url
if hasattr(cherrypy.wsgiserver, 'redirect_url'):
cherrypy.wsgiserver.redirect_url('https://%%s:%s/sabnzbd' % cherryport)

5
sabnzbd/panic.py

@ -279,10 +279,11 @@ def error_page_404(status, message, traceback, version):
<head>
<script type="text/javascript">
<!--
location.href = "%s"
location.href = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + '/sabnzbd/' ;
//-->
</script>
</head>
<body><br/></body>
</html>
''' % sabnzbd.BROWSER_URL
'''

Loading…
Cancel
Save