FIX: Keep filter UI after editing post (#12898)

This commit is contained in:
Penar Musaraj 2021-04-29 14:56:23 -04:00 committed by GitHub
parent 51f872f13a
commit 54b7a0d06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -831,7 +831,10 @@ export default Controller.extend({
const post = result.target;
if (post && !staged && options.jump !== false) {
DiscourseURL.routeTo(post.url, { skipIfOnScreen: true });
DiscourseURL.routeTo(post.url, {
keepFilter: true,
skipIfOnScreen: true,
});
}
})
.catch((error) => {