From 94dfe4bed3403b52ac3a0e777d6841f2a8532118 Mon Sep 17 00:00:00 2001 From: sahil9001 Date: Wed, 27 May 2020 01:57:48 +0530 Subject: [PATCH] portico: Fix apps page webapp link being useless. The /apps page webapp link now takes the user to /accounts/go to find their organization's login page, rather than failing to do anything. Fixes #14977. --- templates/zerver/hello.html | 2 +- zerver/context_processors.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/zerver/hello.html b/templates/zerver/hello.html index 467c8a14d0..546a820d48 100644 --- a/templates/zerver/hello.html +++ b/templates/zerver/hello.html @@ -177,7 +177,7 @@

Web

- +
diff --git a/zerver/context_processors.py b/zerver/context_processors.py index cd11eefdeb..637a3ad578 100644 --- a/zerver/context_processors.py +++ b/zerver/context_processors.py @@ -86,6 +86,8 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: if settings.ZILENCER_ENABLED: apps_page_url = '/apps/' + apps_page_web = settings.ROOT_DOMAIN_URI + '/accounts/go/' + user_is_authenticated = False if hasattr(request, 'user') and hasattr(request.user, 'is_authenticated'): user_is_authenticated = request.user.is_authenticated @@ -120,6 +122,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: 'realm_icon': realm_icon, 'root_domain_uri': settings.ROOT_DOMAIN_URI, 'apps_page_url': apps_page_url, + 'apps_page_web': apps_page_web, 'open_realm_creation': settings.OPEN_REALM_CREATION, 'development_environment': settings.DEVELOPMENT, 'support_email': FromAddress.SUPPORT,