0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 06:24:48 +08:00
discourse/spec/system/user_page
Chris Alberti 93df16f0a6
DEV: Capture destination url and redirect when required user fields are present (#40207)
When required user fields are present, the user is not allowed to visit
other pages on the site until they fill out the user fields. This means
they're redirected to the profile page, but then once they save the
fields they stay on the profile page which can be confusing.

This stores the destination url in the "destination_url" cookie, then
retrieves that and redirects after the required user fields have been
filled out and validated.

Mirrors the logic in our login/auth flows.

Requested in meta /t/403313/ and also mentioned previously on dev at
/t/133792/
2026-05-26 14:22:29 -05:00
..
hide_from_public_spec.rb DEV: Fix a hide_from_public_spec flake (#39801) 2026-05-06 19:09:42 +02:00
staff_info_spec.rb UX: link helpful flags from user profile staff counters (#39011) 2026-03-31 13:10:45 -04:00
user_invites_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_notifications_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_page_search_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_preferences_account_spec.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
user_preferences_interface_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_preferences_navigation_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_preferences_notifications_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_preferences_profile_spec.rb DEV: Capture destination url and redirect when required user fields are present (#40207) 2026-05-26 14:22:29 -05:00
user_preferences_security_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_preferences_tracking_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
user_profile_info_panel_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
users_directory_spec.rb DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00