diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py index fa961ef3e8..fd7c0fc811 100644 --- a/corporate/tests/test_stripe.py +++ b/corporate/tests/test_stripe.py @@ -848,7 +848,7 @@ class StripeTest(StripeTestCase): self.assertEqual(response.status_code, 302) self.assertEqual("/billing/", response["Location"]) - # Check /billing has the correct information + # Check /billing/ has the correct information with patch("corporate.views.billing_page.timezone_now", return_value=self.now): response = self.client_get("/billing/") self.assert_not_in_success_response(["Pay annually"], response) @@ -989,7 +989,7 @@ class StripeTest(StripeTestCase): self.assertEqual(response.status_code, 302) self.assertEqual("/billing/", response["Location"]) - # Check /billing has the correct information + # Check /billing/ has the correct information with patch("corporate.views.billing_page.timezone_now", return_value=self.now): response = self.client_get("/billing/") self.assert_not_in_success_response(["Pay annually", "Update card"], response) diff --git a/templates/corporate/pricing_model.html b/templates/corporate/pricing_model.html index f9c2590352..184b04d94f 100644 --- a/templates/corporate/pricing_model.html +++ b/templates/corporate/pricing_model.html @@ -88,7 +88,7 @@ {% endif %} {% elif sponsorship_pending %} - + Sponsorship pending {% else %} diff --git a/web/src/billing/billing.js b/web/src/billing/billing.js index bd982a4798..3f71a74c7c 100644 --- a/web/src/billing/billing.js +++ b/web/src/billing/billing.js @@ -8,7 +8,7 @@ export function create_update_license_request() { "licensechange", ["licenses_at_next_renewal"], "PATCH", - () => window.location.replace("/billing"), + () => window.location.replace("/billing/"), ); } @@ -56,13 +56,13 @@ export function initialize() { "licensechange", ["licenses"], "PATCH", - () => window.location.replace("/billing"), + () => window.location.replace("/billing/"), ); }); $("#change-plan-status").on("click", (e) => { helpers.create_ajax_request("/json/billing/plan", "planchange", [], "PATCH", () => - window.location.replace("/billing"), + window.location.replace("/billing/"), ); e.preventDefault(); }); diff --git a/web/src/billing/event_status.js b/web/src/billing/event_status.js index 4d37211438..cbc9aeba57 100644 --- a/web/src/billing/event_status.js +++ b/web/src/billing/event_status.js @@ -37,7 +37,7 @@ function handle_session_complete_event(session) { case "free_trial_upgrade_from_billing_page": message = "Your free trial of Zulip Cloud Standard has been activated. You would be redirected to the billing page soon."; - redirect_to = "/billing"; + redirect_to = "/billing/"; break; case "free_trial_upgrade_from_onboarding_page": message = diff --git a/web/src/billing/upgrade.js b/web/src/billing/upgrade.js index b7ecc22f22..9c04f93a93 100644 --- a/web/src/billing/upgrade.js +++ b/web/src/billing/upgrade.js @@ -32,7 +32,7 @@ export const initialize = () => { } e.preventDefault(); helpers.create_ajax_request("/json/billing/upgrade", "invoice", [], "POST", () => - window.location.replace("/billing"), + window.location.replace("/billing/"), ); }); diff --git a/web/templates/gear_menu.hbs b/web/templates/gear_menu.hbs index 6f078da688..ac8a0ec688 100644 --- a/web/templates/gear_menu.hbs +++ b/web/templates/gear_menu.hbs @@ -135,7 +135,7 @@ {{#if show_billing}}