Use ladl.link URLs for all front-facing QR and short-link surfaces.
Deploy Ladill QR Plus / deploy (push) Successful in 36s
Deploy Ladill QR Plus / deploy (push) Successful in 36s
Public landing pages, asset paths, payment callbacks, and redirects now go through QrCode::publicPath() / LadillLink instead of ladill.com/q/* routes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -36,7 +36,7 @@ class QrScanController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($qrCode->isDocumentType()) {
|
if ($qrCode->isDocumentType()) {
|
||||||
return redirect()->route('qr.public.view', $shortCode);
|
return redirect()->away($qrCode->publicPath('view'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($qrCode->isBookType()) {
|
if ($qrCode->isBookType()) {
|
||||||
@@ -62,7 +62,7 @@ class QrScanController extends Controller
|
|||||||
|
|
||||||
return view('public.qr.document-viewer', [
|
return view('public.qr.document-viewer', [
|
||||||
'qrCode' => $qrCode,
|
'qrCode' => $qrCode,
|
||||||
'fileUrl' => route('qr.public.file', $shortCode),
|
'fileUrl' => $qrCode->publicPath('file'),
|
||||||
'allowDownload' => (bool) ($qrCode->content()['allow_download'] ?? true),
|
'allowDownload' => (bool) ($qrCode->content()['allow_download'] ?? true),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<span class="tb-label">{{ $qrCode->label }}</span>
|
<span class="tb-label">{{ $qrCode->label }}</span>
|
||||||
@if($allowDownload)
|
@if($allowDownload)
|
||||||
<a href="{{ route('qr.public.file', $qrCode->short_code) }}" download class="tb-download">
|
<a href="{{ $qrCode->publicPath('file') }}" download class="tb-download">
|
||||||
<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"/>
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
$evColor = $c['brand_color'] ?? '#4f46e5';
|
$evColor = $c['brand_color'] ?? '#4f46e5';
|
||||||
$evName = $c['name'] ?? $qrCode->label;
|
$evName = $c['name'] ?? $qrCode->label;
|
||||||
$hasLogo = !empty($c['logo_path']);
|
$hasLogo = !empty($c['logo_path']);
|
||||||
$logoUrl = $hasLogo ? route('qr.public.event.logo', $qrCode->short_code) : null;
|
$logoUrl = $hasLogo ? $qrCode->publicPath('event-logo') : null;
|
||||||
$size = $c['badge_size'] ?? '4x3';
|
$size = $c['badge_size'] ?? '4x3';
|
||||||
// Physical badge dimensions (inches)
|
// Physical badge dimensions (inches)
|
||||||
[$bw, $bh] = match ($size) {
|
[$bw, $bh] = match ($size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user