<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.3.10</td>
</tr>
</tbody>
</table>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177768967" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/19973" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/19973/hovercard" href="https://github.com/symfony/symfony/pull/19973">#19973</a> added a default IDE file link web view, however the URL it uses is <a href="https://github.com/symfony/symfony/pull/19973/files#diff-887163fa008beee125295c3f16ef7489R56">hard-coded in <code class="notranslate">Resources/config/profiler.xml</code></a> rather than using the <a href="https://github.com/symfony/symfony/pull/19973/files#diff-5fc2fa4ee96c1246c01adcac692c1ae7R31">route at <code class="notranslate">Resources/config/routing/profiler.xml</code></a>.</p>
<p dir="auto">This means that if you use a route prefix e.g.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="_profiler:
    resource: &quot;@WebProfilerBundle/Resources/config/routing/profiler.xml&quot;
    prefix:   /my-prefix/_profiler"><pre class="notranslate"><span class="pl-ent">_profiler</span>:
    <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@WebProfilerBundle/Resources/config/routing/profiler.xml<span class="pl-pds">"</span></span>
    <span class="pl-ent">prefix</span>:   <span class="pl-s">/my-prefix/_profiler</span></pre></div>
<p dir="auto">the URL produced by <code class="notranslate">debug.file_link_formatter</code> is <code class="notranslate">/_profiler/open</code> instead of <code class="notranslate">/my-prefix/_profiler/open</code></p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>~3.2</td>
</tr>
</tbody>
</table>
<p dir="auto">When viewing the web-profiler event (<code class="notranslate">?panel=events</code>) panel the links against the class names appear to be fixed to a hard-coded route <code class="notranslate">_profile/open?file=xyz</code> instead of being resolved using the router. I believe this might be the case anywhere file links are rendered.</p>
<p dir="auto">Because of this when I change my development route prefixes to be anything other than the default ones given in a standard Symfony installation these links will 404.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="_profiler:
  resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
  prefix: /~dev/profiler"><pre class="notranslate"><span class="pl-ent">_profiler</span>:
  <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">'</span>@WebProfilerBundle/Resources/config/routing/profiler.xml<span class="pl-pds">'</span></span>
  <span class="pl-ent">prefix</span>: <span class="pl-s">/~dev/profiler</span></pre></div>
<p dir="auto">I looked at seeing whether I could implement a fix and noticed that this looks like it might be the issue, although I don't have the confidence to make this change.</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/symfony/symfony/blob/fedbc3fbcbb5f99eab635388491cec143b36392d/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml#L57">symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 57
      in
      <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/fedbc3fbcbb5f99eab635388491cec143b36392d">fedbc3f</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L57" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="57"></td>
          <td id="LC57" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> &lt;<span class="pl-ent">argument</span>&gt;/_profiler/open?file=%%f<span class="pl-c1">&amp;amp;</span>line=%%l#line%%l&lt;/<span class="pl-ent">argument</span>&gt; </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;service id=&quot;debug.file_link_formatter&quot; class=&quot;Symfony\Component\HttpKernel\Debug\FileLinkFormatter&quot; public=&quot;false&quot;&gt;
  &lt;argument&gt;%debug.file_link_format%&lt;/argument&gt;
  &lt;argument type=&quot;service&quot; id=&quot;request_stack&quot; on-invalid=&quot;ignore&quot; /&gt;
  &lt;argument&gt;null&lt;/argument&gt;
  &lt;argument&gt;/_profiler/open?file=%%f&amp;amp;line=%%l#line%%l&lt;/argument&gt;
&lt;/service&gt;"><pre class="notranslate">&lt;<span class="pl-ent">service</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>debug.file_link_formatter<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Symfony\Component\HttpKernel\Debug\FileLinkFormatter<span class="pl-pds">"</span></span> <span class="pl-e">public</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>&gt;
  &lt;<span class="pl-ent">argument</span>&gt;%debug.file_link_format%&lt;/<span class="pl-ent">argument</span>&gt;
  &lt;<span class="pl-ent">argument</span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>service<span class="pl-pds">"</span></span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>request_stack<span class="pl-pds">"</span></span> <span class="pl-e">on-invalid</span>=<span class="pl-s"><span class="pl-pds">"</span>ignore<span class="pl-pds">"</span></span> /&gt;
  &lt;<span class="pl-ent">argument</span>&gt;null&lt;/<span class="pl-ent">argument</span>&gt;
  &lt;<span class="pl-ent">argument</span>&gt;/_profiler/open?file=%%f<span class="pl-c1">&amp;amp;</span>line=%%l#line%%l&lt;/<span class="pl-ent">argument</span>&gt;
&lt;/<span class="pl-ent">service</span>&gt;</pre></div>
<p dir="auto">I personally am not affected by this as I would rather view the file in my IDE, however I thought I should report this anyway. Thanks.</p>