Fix QR code URL : ajout /admin/gallery/ prefix + priorité evenement.event_id

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 13:49:20 +02:00
parent 3c3dbd6c8b
commit 1589754a92

View File

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