Skip to content

Commit

Permalink
bug #106 Fix homepage locale resetting (bocharsky-bw)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Jul 21, 2015
2 parents 1dbbd1a + 5890ce2 commit 00b84af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ app:
# the template can be rendered without executing any logic in your own controller.
# See http://symfony.com/doc/current/cookbook/templating/render_without_controller.html
homepage:
path: /
path: /{_locale}
defaults:
_controller: FrameworkBundle:Template:template
template: 'default/homepage.html.twig'
_locale: "%locale%"

0 comments on commit 00b84af

Please sign in to comment.