context fix

This commit is contained in:
Radek Davidek 2026-03-28 15:51:05 +01:00
parent a0bda05d1f
commit 7b5c827635
3 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@
if (dateFrom) params.append('from', new Date(dateFrom).toISOString()); if (dateFrom) params.append('from', new Date(dateFrom).toISOString());
if (dateTo) params.append('to', new Date(dateTo).toISOString()); if (dateTo) params.append('to', new Date(dateTo).toISOString());
const response = await axios.get('/api/data?' + params.toString()); const response = await axios.get('/hb/api/data?' + params.toString());
const data = response.data; const data = response.data;
updateStats(data); updateStats(data);

View File

@ -55,7 +55,7 @@
<div class="error-container"> <div class="error-container">
<h1>⚠️ Chyba</h1> <h1>⚠️ Chyba</h1>
<p>%MESSAGE%</p> <p>%MESSAGE%</p>
<a href="/">Zpět na přihlášení</a> <a href="/hb/dashboard">Zpět na přihlášení</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -94,7 +94,7 @@
function submitLogin(event) { function submitLogin(event) {
event.preventDefault(); event.preventDefault();
const apiKey = document.getElementById('apiKey').value; const apiKey = document.getElementById('apiKey').value;
window.location.href = '/?apiKey=' + encodeURIComponent(apiKey); window.location.href = '/hb/dashboard?apiKey=' + encodeURIComponent(apiKey);
} }
</script> </script>
</body> </body>