Skip to content

Commit e981408

Browse files
seb-jeanxabbuh
andauthored
Update templates/default/_language_selector.html.twig
Co-authored-by: Christian Flothmann <[email protected]>
1 parent 58fe3bf commit e981408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/default/_language_selector.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{% set is_active = app.request.locale == locale.code %}
2828
{% set is_rtl = locale.code in ['ar', 'fa', 'he'] %}
2929
<li class="{{ is_active ? 'active' }} {{ is_rtl ? 'rtl' }}" translate="no">
30-
<a class="stretched-link" lang="{{ locale.code }}" hreflang="{{ locale.code }}" href="{{ path(app.current_route, app.current_route_parameters|merge({_locale: locale.code})) }}">
30+
<a class="stretched-link" lang="{{ locale.code }}" hreflang="{{ locale.code }}" href="{{ path(app.current_route ?? 'blog_index', app.current_route_parameters|merge({_locale: locale.code})) }}">
3131
{{ locale.name|capitalize }}
3232
<small>{{ locale.code }}</small>
3333
</a>

0 commit comments

Comments
 (0)