From b96a5b1efd50f95711c630e7f26e5636a6fd8850 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Wed, 9 Apr 2025 08:07:46 +0200 Subject: [PATCH] [Web] Fix AJAX urls to absolute path --- data/web/js/site/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/js/site/admin.js b/data/web/js/site/admin.js index 847c25aa8..b6edf6f80 100644 --- a/data/web/js/site/admin.js +++ b/data/web/js/site/admin.js @@ -51,7 +51,7 @@ jQuery(function($){ $('.submit_rspamd_regex').attr({"disabled": true}); }); $("#show_rspamd_global_filters").click(function() { - $.get("inc/ajax/show_rspamd_global_filters.php"); + $.get("/inc/ajax/show_rspamd_global_filters.php"); $("#confirm_show_rspamd_global_filters").hide(); $("#rspamd_global_filters").removeClass("d-none"); }); @@ -655,7 +655,7 @@ jQuery(function($){ $(this).html(' '); $.ajax({ type: 'GET', - url: 'inc/ajax/relay_check.php', + url: '/inc/ajax/relay_check.php', dataType: 'text', data: $('#test_relayhost_form').serialize(), complete: function (data) {