Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #20747 -- Made the documentation link in the navbar point at th…

…e current version.

Thanks to Andy Cottrell for the report.
  • Loading branch information...
commit 8f93e33c4fd295dd8b58e224e7f060701be4ef71 1 parent 365bb1f
@bmispelon bmispelon authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  docs/templates/docs/doc.html
  2. +1 −1  templates/base.html
View
2  docs/templates/docs/doc.html
@@ -4,6 +4,8 @@
{% block title %}{{ doc.title|striptags|safe }} | {% trans "Django documentation" %}{% endblock %}
+{% block doc_url %}{% url 'document-index' lang=lang version=version %}{% endblock %}
+
{% block extrabody %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
View
2  templates/base.html
@@ -24,7 +24,7 @@ <h1 id="logo"><a href="https://www.djangoproject.com/"><img src="{% static "img/
<ul id="nav-global">
<li id="nav-homepage"><a href="https://www.djangoproject.com/">Home</a></li>
<li id="nav-download"><a href="https://www.djangoproject.com/download/">Download</a></li>
- <li id="nav-documentation"><a href="https://docs.djangoproject.com/">Documentation</a></li>
+ <li id="nav-documentation"><a href="https://docs.djangoproject.com{% block doc_url %}/{% endblock %}">Documentation</a></li>
<li id="nav-weblog"><a href="https://www.djangoproject.com/weblog/">Weblog</a></li>
<li id="nav-community"><a href="https://www.djangoproject.com/community/">Community</a></li>
<li id="nav-code"><a href="https://code.djangoproject.com/">Code</a></li>
Please sign in to comment.
Something went wrong with that request. Please try again.