<p dir="auto">I don’t know exactly what it’s connected with. But when I type in the "Search" panel something related to Flask to everything that the documentation finds, it attaches broken links.<br>
Tested in the latest version and 2.1</p>
<p dir="auto">Search on the newly rendered docs is causing a 404/infinite redirect error. This happens on both RTD and locally, it doesn't appear to be an issue with RTD. It seems that <code class="notranslate">{{ url_root }}</code> is empty for some reason, at this line:</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/pallets/pallets-sphinx-themes/blob/50414a15c3278044838c57f5531a6c3feede7f92/src/pallets_sphinx_themes/themes/pocoo/layout.html#L12">pallets-sphinx-themes/src/pallets_sphinx_themes/themes/pocoo/layout.html</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 12
      in
      <a data-pjax="true" class="commit-tease-sha" href="/pallets/pallets-sphinx-themes/commit/50414a15c3278044838c57f5531a6c3feede7f92">50414a1</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="L12" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="12"></td>
          <td id="LC12" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-c1">DOCUMENTATION_OPTIONS</span><span class="pl-kos">.</span><span class="pl-c1">URL_ROOT</span> <span class="pl-c1">=</span> <span class="pl-s">'{{ url_root }}'</span><span class="pl-kos">;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1242887/118175177-9cd43380-b3e4-11eb-8df2-df59f2366004.png"><img src="https://user-images.githubusercontent.com/1242887/118175177-9cd43380-b3e4-11eb-8df2-df59f2366004.png" alt="Screenshot from 2021-05-13 08-54-10" style="max-width: 100%;"></a></p>