Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect back after site upload deletion #30141

Conversation

FawazFarid
Copy link
Contributor

This pull request updates the functionality of the Admin::SiteUploadsController to improve user experience when deleting a site upload. Previously, upon deletion of a site upload, the user was redirected to the admin settings branding page regardless of which page you're deleting the site upload from

For example, going to "Administration > Server settings > Appearance" and deleting an uploaded Mascot file redirects you to the "Branding" page instead of back to the "Appearance" page.

With this change, after successfully deleting a site upload, the user will now be redirected back to the page from which the deletion was initiated.

Screenshot 2024-05-01 at 5 15 09 PM

Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for your contribution!

@ClearlyClaire ClearlyClaire added this pull request to the merge queue May 6, 2024
Merged via the queue into mastodon:main with commit 05126d1 May 6, 2024
29 checks passed
@FawazFarid FawazFarid deleted the redirect_back_after_site_upload_delete branch May 6, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants