diff --git a/js/main.js b/js/main.js index a81a64e..bb39d4f 100644 --- a/js/main.js +++ b/js/main.js @@ -265,7 +265,7 @@ async function openProfileModal() { const sessionid = getCookie('sessionid'); if (!sessionid) { alert('Bitte melden Sie sich an.'); return; } try { - const response = await fetch(USER_URL + '?sessionid=' + encodeURIComponent(sessionid)); + const response = await fetch(PROFILE_URL + '?sessionid=' + encodeURIComponent(sessionid)); console.log('openProfileModal response:', response.status, await response.clone().json()); if (response.ok) { const user = await response.json();