From f6a83db3784ac355a907e87cf0511170563bc8e2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 4 Jan 2022 10:13:51 +0100 Subject: [PATCH] wip #4914 @1 --- resources/views/components/link.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/components/link.blade.php b/resources/views/components/link.blade.php index e9a130e..ce1b5b0 100644 --- a/resources/views/components/link.blade.php +++ b/resources/views/components/link.blade.php @@ -3,7 +3,10 @@ use Illuminate\Support\Str; if (!Str::startsWith($href, 'http') && !Str::startsWith($href, '/tools/')) { - // TODO: add adapt local URLs based on environment (whether dynamic or static HTML output) + $map=['home'=>'accueil.html','resources'=>'/ressources.html','medialibrary'=>'/mediatheque.html']; + if(isset($map[$href])){ + $href=$map[$href]; + } $href = '/front' . $href; // Prefix URLs for frontend preview } @endphp -- 2.39.5