Page 1 of 1

Bug: checkserver.js uses absolute path

Posted: February 18th, 2012, 3:42 pm
by bramp
I run sabnzbd behind apache, and I noticed that during the Wizard setup, the "Test Server" button didn't work. The call to tapi was uing a absolute path, not a relative one.

Very simple fix,

Code: Select all

--- sabnzbdplus.bak//interfaces/wizard/static/javascript/checkserver.js	2012-02-18 15:34:14.804745624 -0500
+++ sabnzbdplus/interfaces/wizard/static/javascript/checkserver.js	2012-02-18 15:30:44.906821538 -0500
@@ -13,7 +13,7 @@
   $("#serverTest").click(function(){
     $('#serverResponse').html(txtChecking);
     $.getJSON(
-      "/tapi?mode=config&name=test_server&output=json",
+      "../tapi?mode=config&name=test_server&output=json",
       $("form").serialize(),
       function(result) {
         if (result.value.result){
thanks

Re: Bug: checkserver.js uses absolute path

Posted: February 18th, 2012, 6:20 pm
by shypike
Thanks for the tip, we'll fix it.
Of course, not many people will run the wizard from behind Apache...