Fix QR code URL : utiliser /g/ au lieu de /admin/gallery/ (routes publiques)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 14:04:36 +02:00
parent 1589754a92
commit 09c8ea75fa

View File

@@ -363,7 +363,7 @@ async function chargerBoothInfo() {
const info = await apiGet('/api/booth/info'); const info = await apiGet('/api/booth/info');
if (info.password) { if (info.password) {
const eventId = (config.evenement || {}).event_id || booth.event_id || 'default'; const eventId = (config.evenement || {}).event_id || booth.event_id || 'default';
const qrUrl = `${booth.url}/admin/gallery/${eventId}?p=${info.password}`; const qrUrl = `${booth.url}/g/${eventId}?p=${info.password}`;
document.getElementById('booth-qr').src = `/api/qr?url=${encodeURIComponent(qrUrl)}`; document.getElementById('booth-qr').src = `/api/qr?url=${encodeURIComponent(qrUrl)}`;
el.classList.remove('cache'); el.classList.remove('cache');
} }