File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 25
25
{{ render(controller(' App\\Controller\\BlogController:commentForm' , {' id' : post .id })) }}
26
26
{% else %}
27
27
<p >
28
- <a class =" btn btn-success" href =" {{ path(' security_login' ) }}" >
28
+ <a class =" btn btn-success" href =" {{ path(' security_login' , { ' next ' : app . request . pathInfo } ) }}" >
29
29
<i class =" fa fa-sign-in" aria-hidden =" true" ></i > {{ ' action.sign_in' | trans }}
30
30
</a >
31
31
{{ ' post.to_publish_a_comment' | trans }}
Original file line number Diff line number Diff line change 28
28
<label for =" password" >{{ ' label.password' | trans }}</label >
29
29
<input type =" password" id =" password" name =" _password" class =" form-control" />
30
30
</div >
31
+ <input type =" hidden" name =" _target_path" value =" {{ app .request .get (' next' ) }}" />
31
32
<input type =" hidden" name =" _csrf_token" value =" {{ csrf_token(' authenticate' ) }}" />
32
33
<button type =" submit" class =" btn btn-primary" >
33
34
<i class =" fa fa-sign-in" aria-hidden =" true" ></i > {{ ' action.sign_in' | trans }}
You can’t perform that action at this time.
0 commit comments