Repair option in smpl interface not working
Posted: January 5th, 2012, 4:57 am
I recently put my sabnzbd behind an apache with ProxyPass.
Now my sabnzbd instance is reachable on port 80 on the url http://bla/sab
Using the smpl white theme, and today i noticed that the 'Repair' option in 'Status' points to the wrong url.
Most form actions are pointing to config/blabla but the repair one had ../config/repair as the action.
Fixed it with the following change:
sabnzbdplus/interfaces/smpl/templates
--- connection_info.tmpl.org 2012-01-05 10:47:50.829102535 +0100
+++ connection_info.tmpl 2012-01-05 10:48:01.265102533 +0100
@@ -86,6 +86,6 @@
<!--#end if#-->
$T('explain-Repair')<br/>
<form action="saveGeneral" method="post">
-<input type="submit" onclick="this.form.action='../config/repair?session=$session'; this.form.submit(); return false;" value="$T('button-repair')"/>
+<input type="submit" onclick="this.form.action='config/repair?session=$session'; this.form.submit(); return false;" value="$T('button-repair')"/>
</form>
Now my sabnzbd instance is reachable on port 80 on the url http://bla/sab
Using the smpl white theme, and today i noticed that the 'Repair' option in 'Status' points to the wrong url.
Most form actions are pointing to config/blabla but the repair one had ../config/repair as the action.
Fixed it with the following change:
sabnzbdplus/interfaces/smpl/templates
--- connection_info.tmpl.org 2012-01-05 10:47:50.829102535 +0100
+++ connection_info.tmpl 2012-01-05 10:48:01.265102533 +0100
@@ -86,6 +86,6 @@
<!--#end if#-->
$T('explain-Repair')<br/>
<form action="saveGeneral" method="post">
-<input type="submit" onclick="this.form.action='../config/repair?session=$session'; this.form.submit(); return false;" value="$T('button-repair')"/>
+<input type="submit" onclick="this.form.action='config/repair?session=$session'; this.form.submit(); return false;" value="$T('button-repair')"/>
</form>