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 edit pages to the previous page on save #16140

Open
wants to merge 6 commits into
base: 5.6
Choose a base branch
from

Conversation

brianjhanson
Copy link
Contributor

@brianjhanson brianjhanson commented Nov 18, 2024

A revival of #12400 which got closed accidentally.

Updates redirect URLs for elements and fields to return back to the referrer (when available) instead of the Element::getPostEditUrl() URL.

As an added bonus, search queries for searches using the vue AdminTable component will now be persisted to the URL.

Fixes #11261, #11246

Copy link

linear bot commented Nov 18, 2024

@brianjhanson brianjhanson changed the base branch from 5.x to 5.6 November 18, 2024 18:10
@@ -717,6 +717,10 @@
}
this.reload();
}

const url = new URL(window.location.href);
url.searchParams.set('q', this.searchTerm);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brandonkelly I don't think using q here will cause any issues, but if you think it's likely to run into another query param, we can use something else.

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.

1 participant