zulip/web
Sahil Batra eea5ee8923 stream-settings: Handle invalid urls correctly.
There were couple of problems in our handling of invalid or
incomplete URLs-
- The browser back button behavior breaks if someone enters
url with invalid or inaccessible stream ID, incorrect stream
name, "#streams/new" url without permission to create streams.
- On typing stream edit URLs with incorrect right side tab or
without any right side tab, we showed "general" section, which
is fine, but the URL was still incorrect.

This commit fixes the above mentioned problems-
- We now update the right side tab to "general" if right
side tab is invalid or there is no right side tab.
- All the URL updates to fix invalid urls are done using
"history.replaceState" to make sure the browser back button
behaves as expected.
- All the code for checking the urls is done in hashchange.js
itself, so we can remove some code from change_state.
2024-02-22 13:09:33 -08:00
..
e2e-tests settings: Rename signup_notifications_stream realm setting. 2024-02-21 09:04:23 -08:00
generated
html
images portico: Remove screenshots from /apps. 2024-01-31 16:10:32 -08:00
shared typing_status: Add an extra notification_event_type to Recipients. 2024-02-12 10:51:12 -08:00
src stream-settings: Handle invalid urls correctly. 2024-02-22 13:09:33 -08:00
styles read_receipts: Fix duplication bug when opening menu repeatedly. 2024-02-22 10:49:29 -08:00
templates group_settings: Refactor code to handle tabs in right section. 2024-02-22 13:09:33 -08:00
tests stream-settings: Handle invalid urls correctly. 2024-02-22 13:09:33 -08:00
third bootstrap: Remove pre styles. 2024-02-19 18:15:26 -08:00
.browserslistrc
.gitignore
babel.config.js dependencies: Upgrade JavaScript dependencies. 2024-02-22 12:46:40 -08:00
debug-require-webpack-plugin.ts eslint: Fix @typescript-eslint/no-confusing-void-expression. 2023-12-21 16:14:40 -08:00
debug-require.js
postcss.config.js
webpack.assets.json billing: Add separate entry point for billing login pages. 2024-02-20 11:51:32 -08:00
webpack.config.ts
webpack.dev-assets.json