]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32924: Fix the Show Source url in the documentation (GH-25994)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 May 2021 18:43:59 +0000 (11:43 -0700)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 18:43:59 +0000 (11:43 -0700)
(cherry picked from commit 03acfc50ac0be8b49847b94dee93e21b1efa0e76)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Doc/tools/templates/customsourcelink.html

index fca44e9163cac744c03c4b9a80ffa5c6903f299c..21af621efce95b15a6e7b092201ad1b7ce79a3c4 100644 (file)
@@ -4,7 +4,7 @@
     <ul class="this-page-menu">
       <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
       <li>
-        <a href="https://github.com/python/cpython/blob/master/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
+        <a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
             rel="nofollow">{{ _('Show Source') }}
         </a>
       </li>