Skip to content

Commit 2136e68

Browse files
committed
feature #435 By default redirect to post index page after login (yceruto, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- By default redirect to post index page after login This PR change the default target path `/` to <del>`admin_index`</del> `blog_index` route, useful when we access to login page directly (i.e. through URL). Commits ------- 09e2c64 Improved the help note 283d838 Expanded the help note about default_target_path 0b753ab By default redirect to post index page after login
2 parents e533bd0 + 09e2c64 commit 2136e68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/config/security.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ security:
3232
# Secure the login form against CSRF
3333
# Reference: http://symfony.com/doc/current/cookbook/security/csrf_in_login_form.html
3434
csrf_token_generator: security.csrf.token_manager
35+
# The page users are redirect to when there is no previous page stored in the
36+
# session (for example when the users access directly to the login page).
37+
default_target_path: blog_index
3538

3639
logout:
3740
# The route name the user can go to in order to logout

0 commit comments

Comments
 (0)