8000 [WebProfilerBundle] Fix intercept external redirects · symfony/symfony@4ffadec · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ffadec

Browse files
HeahDudefabpot
authored andcommitted
[WebProfilerBundle] Fix intercept external redirects
1 parent 1c87e55 commit 4ffadec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_redirect.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
<div class="block-exception">
4040
<h1>Redirection Intercepted</h1>
4141

42-
{% set absolute_url = host in location ? location : host ~ location %}
42+
{% set absolute_url = absolute_url(location) %}
4343
<p>This request redirects to <strong>{{ absolute_url }}</strong></p>
4444

45-
<p><a class="btn" href="{{ location }}">Follow redirect</a></p>
45+
<p><a class="btn" href="{{ absolute_url }}">Follow redirect</a></p>
4646

4747
<p class="sf-redirection-help">
4848
The redirect was intercepted by the Symfony Web Debug toolbar to help debugging.

0 commit comments

Comments
 (0)
0