Skip to content

Commit 8262757

Browse files
kcowgerclaude
andcommitted
Link nav logo to commcare.dimagi.com for logged-out users
The logo currently links to the homepage view, which redirects logged-out users back to the login page they are already on. Point it at the marketing site instead, matching where the other pre-login links go. Logged-in users keep the homepage link. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 87da30a commit 8262757

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

corehq/apps/hqwebapp/templates/hqwebapp/bootstrap5/base_navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="container-fluid">
2525
<div class="navbar-header hq-header">
2626
<a
27-
href="{% if request|toggle_enabled:"USER_TESTING_SIMPLIFY" %}#{% else %}{% url "homepage" %}{% endif %}"
27+
href="{% if request|toggle_enabled:"USER_TESTING_SIMPLIFY" %}#{% elif request.user.is_authenticated %}{% url "homepage" %}{% else %}{% prelogin_url "home" %}{% endif %}"
2828
class="navbar-brand"
2929
>
3030
{% if CUSTOM_LOGO_URL %}

corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/hqwebapp/base_navigation.html.diff.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div class="container-fluid">
2323
+ <div class="navbar-header hq-header">
2424
+ <a
25-
+ href="{% if request|toggle_enabled:"USER_TESTING_SIMPLIFY" %}#{% else %}{% url "homepage" %}{% endif %}"
25+
+ href="{% if request|toggle_enabled:"USER_TESTING_SIMPLIFY" %}#{% elif request.user.is_authenticated %}{% url "homepage" %}{% else %}{% prelogin_url "home" %}{% endif %}"
2626
+ class="navbar-brand"
2727
+ >
2828
+ {% if CUSTOM_LOGO_URL %}

0 commit comments

Comments
 (0)