We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 050f9a5 + cf24ad9 commit ab8f708Copy full SHA for ab8f708
pythonsd/templates/pythonsd/base.html
@@ -23,7 +23,8 @@
23
24
<body>
25
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
26
- <a class="navbar-brand" href="{% url 'index' %}">
+ {% url 'index' as index_url %}
27
+ <a class="navbar-brand" href="{% if request.path != index_url %}{{ index_url }}{% else %}#{% endif %}">
28
<img src="{% static 'img/sandiegopython-logo.svg' %}" alt="San Diego Python Home">
29
</a>
30
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars-expand" aria-controls="navbars-expand" aria-expanded="false" aria-label="Toggle navigation">
0 commit comments