mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Redirect to proper HTTP root on state change
This commit is contained in:
parent
254f41a2cc
commit
57f1af05f5
2 changed files with 7 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
// Redirect to home page after countdown.
|
// Redirect to home page after countdown.
|
||||||
function reloadPage() {
|
function reloadPage() {
|
||||||
window.location.href = "index";
|
window.location.href = "${new_http_root}index";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -3212,8 +3212,13 @@ class WebInterface(object):
|
||||||
quote = self.random_arnold_quotes()
|
quote = self.random_arnold_quotes()
|
||||||
plexpy.SIGNAL = signal
|
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,
|
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
|
@cherrypy.expose
|
||||||
@requireAuth(member_of("admin"))
|
@requireAuth(member_of("admin"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue