From: Vincent Vanwaelscappel Date: Tue, 4 Jan 2022 09:13:51 +0000 (+0100) Subject: wip #4914 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f6a83db3784ac355a907e87cf0511170563bc8e2;p=odl.git wip #4914 @1 --- 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