From 2238fc39af564d03d677e6bbf68c7262d4a2705d Mon Sep 17 00:00:00 2001 From: "Alfonso Saavedra \"Son Link" Date: Thu, 25 Jul 2024 15:29:22 +0200 Subject: [PATCH] Fixed 2 URL --- public/js/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index d60aad6..52c6e27 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -21,7 +21,7 @@ $('#user-edit-form > form').on('submit', function(e) { const formData = new FormData(this); - axios.post('/dashboard/update_user', formData) + axios.post(`${base_url}/dashboard/update_user`, formData) .then( resp => { if (resp.data) window.location.reload() }) @@ -46,7 +46,7 @@ $('#user-passwd-form > form').on('submit', function(e) { return; } - axios.post('/dashboard/change_passwd', formData) + axios.post(`${base_url}/dashboard/change_passwd`, formData) .then( resp => { if (resp.data) { if (resp.data.ok) window.location.reload()