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