]> _ Git - pmi.git/commitdiff
wip #3262
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Dec 2019 18:38:44 +0000 (19:38 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Dec 2019 18:38:44 +0000 (19:38 +0100)
resources/views/partials/footer-language-switcher.blade.php

index 118fa3245ec78cc5d7fb07f108651f6bd652c5fd..dff94c72207ccf24a5f912b989def9f9cad0aeaf 100644 (file)
 
             <ul class="footer-locales-list">
                 @foreach($locales['others'] as $code=>$locale)
-                    <li><a href="/en"><img src="{{ asset('images/locale-'.$locale['flag'].'.svg') }}"
-                                           alt="{{$locale['name']}}"
-                                           class="footer-locales-flag">{{ucfirst($locale['name'])}}</a></li>
+                    <li><a href="{{CubistMenu::getCurrentPage()->getTranslatedPage($code)->getURL()}}"
+                           target="_self"><img src="{{ asset('images/locale-'.$locale['flag'].'.svg') }}"
+                                               alt="{{$locale['name']}}"
+                                               class="footer-locales-flag">{{ucfirst($locale['name'])}}</a></li>
                 @endforeach
             </ul>
         </div>