Bug: checkserver.js uses absolute path
Posted: February 18th, 2012, 3:42 pm
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,
thanks
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){