Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7954c8d

Browse filesBrowse files
committed
Fix an execption for redirects without location header
1 parent 273fa3f commit 7954c8d
Copy full SHA for 7954c8d

File tree

1 file changed

+6
-2
lines changed
Filter options

1 file changed

+6
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_redirect.html.twig
+6-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@
3939
<div class="block-exception">
4040
<h1>Redirection Intercepted</h1>
4141

42-
{% set absolute_url = absolute_url(location) %}
43-
<p>This request redirects to <strong>{{ absolute_url }}</strong></p>
42+
{% if location %}
43+
{% set absolute_url = absolute_url(location) %}
44+
<p>This request redirects to <strong>{{ absolute_url }}</strong></p>
45+
{% else %}
46+
{# TODO: what do do? #}
47+
{% endif %}
4448

4549
<p><a class="btn" href="{{ absolute_url }}">Follow redirect</a></p>
4650

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.