Skip to content

Commit

Permalink
Fix Issue#96 - AJAX paths when loading file outside root that bootstr…
Browse files Browse the repository at this point in the history
…aps PW.
  • Loading branch information
adrianbj committed Jul 2, 2024
1 parent 273dec2 commit 7aac62f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.26.26',
'version' => '4.26.27',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
2 changes: 1 addition & 1 deletion panels/ProcesswireInfoPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function tracyClearGoToPageID(matchStatus) {
}
}
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.send("goToPage="+pid);
Expand Down
2 changes: 1 addition & 1 deletion scripts/exception-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(!tracyExceptionLoader) {
xmlhttp.getAllResponseHeaders();
}
};
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.send("filePath=" + filePath);
Expand Down
2 changes: 1 addition & 1 deletion scripts/file-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if(!tracyFileEditorLoader) {
xmlhttp.getAllResponseHeaders();
}
};
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.send("filePath=" + filePath);
Expand Down

0 comments on commit 7aac62f

Please sign in to comment.