From c7bfce4a64b8a1758d09e46e72c2859ba2a3484f Mon Sep 17 00:00:00 2001
From: Oliver <oliver.henry.walters@gmail.com>
Date: Mon, 11 Oct 2021 10:53:49 +1100
Subject: [PATCH] Fix various documentation links

- Reference the configured docs verrsion
---
 InvenTree/templates/about.html | 2 +-
 InvenTree/templates/stats.html | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/InvenTree/templates/about.html b/InvenTree/templates/about.html
index aaa14adce5..0744d6be8f 100644
--- a/InvenTree/templates/about.html
+++ b/InvenTree/templates/about.html
@@ -83,7 +83,7 @@
                             <tr>
                                 <td><span class='fas fa-mobile-alt'></span></td>
                                 <td>{% trans "Mobile App" %}</td>
-                                <td><a href="https://inventree.readthedocs.io/en/latest/app/app">https://inventree.readthedocs.io/en/latest/app/app</a></td>
+                                <td><a href="{% inventree_docs_url %}/app/app">{% inventree_docs_url %}/app/app</a></td>
                             </tr>
                             <tr>
                                 <td><span class='fas fa-bug'></span></td>
diff --git a/InvenTree/templates/stats.html b/InvenTree/templates/stats.html
index 2d2a9ccbf7..df42576923 100644
--- a/InvenTree/templates/stats.html
+++ b/InvenTree/templates/stats.html
@@ -51,7 +51,7 @@
         <td><span class='fas fa-tasks'></span></td>
         <td>{% trans "Background Worker" %}</td>
         <td>
-            <a href='https://inventree.readthedocs.io/en/latest/admin/tasks'>
+            <a href='{% inventree_docs_url %}/admin/tasks'>
                 <span class='label label-red'>{% trans "Background worker not running" %}</span>
             </a>
         </td>
@@ -62,7 +62,7 @@
         <td><span class='fas fa-envelope'></span></td>
         <td>{% trans "Email Settings" %}</td>
         <td>
-            <a href='https://inventree.readthedocs.io/en/latest/admin/email'>
+            <a href='{% inventree_docs_url %}/admin/email'>
                 <span class='label label-yellow'>{% trans "Email settings not configured" %}</span>
             </a>
         </td>