FIX: the back button (#130)

FIX: the back button (#130)

Back button wasn’t working when running in Ember CLI. This PR fixes it by doing the transition to the same route but without URL parameter properly. This works in both our environments (legacy-3.12.0, and ember-cli-3.15.0).

diff --git a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6
index 900c001..a276816 100644
--- a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6
+++ b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6
@@ -155,8 +155,7 @@ export default Ember.Controller.extend({
         selectedQueryId: null,
         sortBy: ["last_run_at:desc"],
       });
-      this.send("refreshModel");
-      this.transitionToRoute("adminPlugins.explorer");
+      this.transitionToRoute({ queryParams: { id: null } });
     },
 
     showHelpModal() {
diff --git a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
index 78f95e2..f6bf357 100644
--- a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
+++ b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
@@ -40,11 +40,4 @@ export default DiscourseRoute.extend({
   setupController(controller, model) {
     controller.setProperties(model);
   },
-
-  actions: {
-    refreshModel() {
-      this.refresh();
-      return false;
-    },
-  },
 });

GitHub sha: e85aab4b33d9e0e97ec226db468816e42258e0a1

This commit appears in #130 which was approved by jjaffeux. It was merged by AndrewPrigorshnev.