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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user