diff --git a/data/interfaces/default/shutdown.html b/data/interfaces/default/shutdown.html index afd0c0a0..5ab93c9f 100644 --- a/data/interfaces/default/shutdown.html +++ b/data/interfaces/default/shutdown.html @@ -47,7 +47,7 @@ // Redirect to home page after countdown. function reloadPage() { - window.location.href = "index"; + window.location.href = "${new_http_root}index"; } diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 9b96bca2..10aacaa9 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -3212,8 +3212,13 @@ class WebInterface(object): quote = self.random_arnold_quotes() plexpy.SIGNAL = signal + if plexpy.CONFIG.HTTP_ROOT: + new_http_root = '/' + plexpy.CONFIG.HTTP_ROOT.strip('/') + '/' + else: + new_http_root = '/' + return serve_template(templatename="shutdown.html", title=title, - message=message, timer=timer, quote=quote) + new_http_root=new_http_root, message=message, timer=timer, quote=quote) @cherrypy.expose @requireAuth(member_of("admin"))