From 1589754a9271385e223ec290d5350a985030c11b Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 27 Jun 2026 13:49:20 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20QR=20code=20URL=20:=20ajout=20/admin/gall?= =?UTF-8?q?ery/=20prefix=20+=20priorit=C3=A9=20evenement.event=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- frontend/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/app.js b/frontend/js/app.js index 965551d..d419f2a 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -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'); }