<div class="notification">
  You're viewing documentation for Gensim 4.0.0. For Gensim 3.8.3, please visit the old <a href="https://radimrehurek.com/gensim_3.8.3">Gensim 3.8.3 documentation</a>.
</div>

<div class="notification">
  You're viewing documentation for Gensim 4.0.0. For Gensim 3.8.3, please visit the old <a id="notification" href="https://radimrehurek.com/gensim_3.8.3">Gensim 3.8.3 documentation</a>.
  <script>
    notification.href += location.pathname.replace(/^\/gensim/, "");
  </script>
</div>

Make the link to the Gensim 3.8.3 documentation dynamic Notification in header of Gensim 4 docs redirects to corresponding page.
Make the link to the Gensim 3.8.3 documentation dynamic
Notification in header of Gensim 4 docs redirects to corresponding page.
