Skip to content

Commit 4101cc4

Browse files
GromNaNjaviereguiluz
authored andcommitted
Remove usage of deprecated Request::get() in twig template
1 parent b388eda commit 4101cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/security/login.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<label class="form-check-label" for="remember_me">{{ 'label.remember_me'|trans }}</label>
3939
</div>
4040

41-
<input type="hidden" name="_target_path" value="{{ app.request.get('redirect_to') }}">
41+
<input type="hidden" name="_target_path" value="{{ app.request.query.get('redirect_to') }}">
4242
<input type="hidden" name="_csrf_token" data-controller="csrf-protection" value="{{ csrf_token('authenticate') }}">
4343
<button type="submit" class="btn btn-primary">
4444
<twig:ux:icon name="tabler:login"/> {{ 'action.sign_in'|trans }}

0 commit comments

Comments
 (0)