Skip to content

Commit 00b84af

Browse files
committed
bug symfony#106 Fix homepage locale resetting (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Fix homepage locale resetting Add locale to `homepage` route to avoid locale resetting on homepage Commits ------- 5890ce2 Fix homepage locale resetting
2 parents 1dbbd1a + 5890ce2 commit 00b84af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/config/routing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ app:
1818
# the template can be rendered without executing any logic in your own controller.
1919
# See http://symfony.com/doc/current/cookbook/templating/render_without_controller.html
2020
homepage:
21-
path: /
21+
path: /{_locale}
2222
defaults:
2323
_controller: FrameworkBundle:Template:template
2424
template: 'default/homepage.html.twig'
25+
_locale: "%locale%"

0 commit comments

Comments
 (0)