exports: Improve notifications about completed data exports.

Change the url in the notification message to point to the settings
interface rather than linking to the export directly.

This is a much better user experience in the case that the export has
been deleted since the time the export was requested.

Fixes: #26923.
This commit is contained in:
Esther Anierobi 2023-10-05 22:57:37 +01:00 committed by Tim Abbott
parent 9fe7029b53
commit b2ea3125b2
1 changed files with 2 additions and 2 deletions

View File

@ -1113,8 +1113,8 @@ class DeferredWorker(QueueProcessingWorker):
# triggered the export know the export finished.
with override_language(user_profile.default_language):
content = _(
"Your data export is complete and has been uploaded here:\n\n{public_url}"
).format(public_url=public_url)
"Your data export is complete. [View and download exports]({export_settings_link})."
).format(export_settings_link="/#organization/data-exports-admin")
internal_send_private_message(
sender=get_system_bot(settings.NOTIFICATION_BOT, realm.id),
recipient_user=user_profile,