From ad96b0e0dbcb41466083dfc46f9bed6df14d6db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 4 Sep 2019 11:04:08 -0400 Subject: [PATCH] feat: preserver querystring when changing category sort --- public/src/modules/sort.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/modules/sort.js b/public/src/modules/sort.js index 8242df566b..8497e52806 100644 --- a/public/src/modules/sort.js +++ b/public/src/modules/sort.js @@ -17,7 +17,8 @@ define('sort', ['components'], function (components) { return app.alertError(err.message); } config[field] = newSetting; - ajaxify.go(gotoOnSave); + var qs = decodeURIComponent($.param(utils.params())); + ajaxify.go(gotoOnSave + (qs ? '?' + qs : '')); }); }); };