Skip to content

Commit

Permalink
Use absolute URL for when the profiler's domain differs from the cont…
Browse files Browse the repository at this point in the history
…roller's domain which initialises the profiler.
  • Loading branch information
Alumbrados authored and martijnhartlief committed May 22, 2019
1 parent 15e9eec commit 13ee1fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -164,7 +164,7 @@ public function toolbarAction(Request $request, $token)

$url = null;
try {
$url = $this->generator->generate('_profiler', ['token' => $token]);
$url = $this->generator->generate('_profiler', ['token' => $token], UrlGeneratorInterface::ABSOLUTE_URL);
} catch (\Exception $e) {
// the profiler is not enabled
}
Expand Down
@@ -1,5 +1,5 @@
<div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }} {{ additional_classes|default('') }}" {{ block_attrs|default('')|raw }}>
{% if link is not defined or link %}<a href="{{ path('_profiler', { token: token, panel: name }) }}">{% endif %}
{% if link is not defined or link %}<a href="{{ url('_profiler', { token: token, panel: name }) }}">{% endif %}
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
{% if link|default(false) %}</a>{% endif %}
<div class="sf-toolbar-info">{{ text|default('') }}</div>
Expand Down

0 comments on commit 13ee1fa

Please sign in to comment.