FIX: bug with navigation to the activity/topics and the activity/read pages (#14182)

FIX: bug with navigation to the activity/topics and the activity/read pages (#14182)

diff --git a/app/assets/javascripts/discourse/app/routes/user-activity-read.js b/app/assets/javascripts/discourse/app/routes/user-activity-read.js
index 1cfd2c9..7622ea0 100644
--- a/app/assets/javascripts/discourse/app/routes/user-activity-read.js
+++ b/app/assets/javascripts/discourse/app/routes/user-activity-read.js
@@ -1,5 +1,6 @@
 import UserAction from "discourse/models/user-action";
 import UserTopicListRoute from "discourse/routes/user-topic-list";
+import { action } from "@ember/object";
 
 export default UserTopicListRoute.extend({
   userActionType: UserAction.TYPES.topics,
@@ -9,4 +10,9 @@ export default UserTopicListRoute.extend({
       filter: "read",
     });
   },
+
+  @action
+  refresh() {
+    this.refresh();
+  },
 });
diff --git a/app/assets/javascripts/discourse/app/routes/user-activity-topics.js b/app/assets/javascripts/discourse/app/routes/user-activity-topics.js
index 3e736f3..7a08b36 100644
--- a/app/assets/javascripts/discourse/app/routes/user-activity-topics.js
+++ b/app/assets/javascripts/discourse/app/routes/user-activity-topics.js
@@ -1,5 +1,6 @@
 import UserAction from "discourse/models/user-action";
 import UserTopicListRoute from "discourse/routes/user-topic-list";
+import { action } from "@ember/object";
 
 export default UserTopicListRoute.extend({
   userActionType: UserAction.TYPES.topics,
@@ -10,4 +11,9 @@ export default UserTopicListRoute.extend({
         "topics/created-by/" + this.modelFor("user").get("username_lower"),
     });
   },
+
+  @action
+  refresh() {
+    this.refresh();
+  },
 });

GitHub sha: 074bce77f067067ad2d5e4bbc5110ea92374c827

This commit appears in #14182 which was approved by eviltrout. It was merged by AndrewPrigorshnev.