From aadf4a204d68a342787bf99f2bbef0418359c415 Mon Sep 17 00:00:00 2001 From: Jer-Pha <131234246+Jer-Pha@users.noreply.github.com> Date: Thu, 23 May 2024 16:51:26 -0700 Subject: [PATCH 1/5] refactor: prevent logo click reloading home page if user is already there Depending on your design philosophy, clicking the logo should not do anything if you are already where it takes you. https://ux.stackexchange.com/a/55642 The conditional could be inside the href property, which would be DRY but also harder to read: {% url 'index' as index_url %} --- pythonsd/templates/pythonsd/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pythonsd/templates/pythonsd/base.html b/pythonsd/templates/pythonsd/base.html index 96e0ffe..de97c97 100644 --- a/pythonsd/templates/pythonsd/base.html +++ b/pythonsd/templates/pythonsd/base.html @@ -23,7 +23,12 @@