Parcourir la source

Merge branch 'ofaj' of github.com:chamilo/chamilo-lms into ofaj

Yannick Warnier il y a 8 ans
Parent
commit
10f67f9453

+ 1 - 1
src/Chamilo/PageBundle/Resources/views/blocks.html.twig

@@ -4,7 +4,7 @@
             <div class="col-md-3">
                 {{ sonata_page_render_container('header', page)  }}
                 <h4 class="title">
-                    <a href="{{ url(page.routeName, {'path' : page.site.relativePath ~ page.url}) }}">
+                    <a href="{{ url(page.routeName, {'path' : page.site.relativePath ~ page.url, '_locale' : app.request.getLocale() }) }}">
                         {{ page.title }}
                     </a>
                 </h4>

+ 1 - 1
src/Chamilo/PageBundle/Resources/views/latest.html.twig

@@ -6,7 +6,7 @@
             <div class="items">
                 <div class="description">
                     <h2 class="title">
-                        <a href="{{ url(page.routeName, {'path' : page.site.relativePath ~ page.url }) }}">{{ page.name }}</a>
+                        <a href="{{ url(page.routeName, {'path' : page.site.relativePath ~ page.url, '_locale' : app.request.getLocale() }) }}">{{ page.name }}</a>
                     </h2>
                     <div class="date">
                         <i class="fa fa-calendar" aria-hidden="true"></i>