Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix active tab when browsing the api

Roland Geiderd34ed01bdb74
diff --git a/wger/utils/context_processor.py b/wger/utils/context_processor.py
index c88cb81c1..969cbbdad 100644
--- a/wger/utils/context_processor.py
+++ b/wger/utils/context_processor.py
@@ -59,7 +59,8 @@ def processor(request):
# Pseudo-intelligent navigation here
if '/software/' in request.get_full_path() \
- or '/contact' in request.get_full_path():
+ or '/contact' in request.get_full_path() \
+ or '/api/v2' in request.get_full_path():
context['active_tab'] = constants.SOFTWARE_TAB
elif '/exercise/' in request.get_full_path():