Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Take user to default page if next_page is invalid.
Aman Agrawal98868b7f4a81
diff --git a/corporate/lib/decorator.py b/corporate/lib/decorator.pyindex dde25911a3f..b3d61ba1039 100644--- a/corporate/lib/decorator.py+++ b/corporate/lib/decorator.py@@ -133,10 +133,8 @@ def get_next_page_param_from_request_path(request: HttpRequest) -> Optional[str]if page_type in REMOTE_BILLING_VALID_NEXT_PAGES:return page_type- # Should be impossible to reach here. If this is reached, it must mean- # we have a registered endpoint that doesn't have a VALID_NEXT_PAGES entry- # or the parsing logic above is failing.- raise AssertionError(f"Unknown page type: {page_type}")+ # page_type is not where we want user to go after a login, so just render the default page.+ return None # nocoveragedef authenticated_remote_server_management_endpoint(