Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
landing-page: Show correct pricing tab based on context.
Aman Agrawal48af342bd834
diff --git a/web/src/portico/landing-page.js b/web/src/portico/landing-page.jsindex cee09fd10bb..8068f68b07a 100644--- a/web/src/portico/landing-page.js+++ b/web/src/portico/landing-page.js@@ -138,8 +138,10 @@ $(() => {if (window.location.pathname.endsWith("/plans/")) {const tabs = ["#cloud", "#self-hosted"];- // Default to showing the #cloud tab- let tab_to_show = "#cloud";+ // Show the correct tab based on context.+ let tab_to_show = $(".portico-pricing").hasClass("showing-self-hosted")+ ? "#self-hosted"+ : "#cloud";const target_hash = window.location.hash;// Capture self-hosted-based fragments, such as