Remove old redirect rules

Remove old redirect rules

diff --git a/app/assets/javascripts/discourse/app/initializers/url-redirects.js b/app/assets/javascripts/discourse/app/initializers/url-redirects.js
index ecff5b3..69bdff1 100644
--- a/app/assets/javascripts/discourse/app/initializers/url-redirects.js
+++ b/app/assets/javascripts/discourse/app/initializers/url-redirects.js
@@ -7,16 +7,6 @@ export default {
   initialize(container) {
     const currentUser = container.lookup("current-user:main");
 
-    // URL rewrites (usually due to refactoring)
-    DiscourseURL.rewrite(/^\/category\//, "/c/");
-    DiscourseURL.rewrite(/^\/group\//, "/groups/");
-    DiscourseURL.rewrite(/^\/groups$/, "/g");
-    DiscourseURL.rewrite(/^\/groups\//, "/g/");
-    DiscourseURL.rewrite(/\/private-messages\/$/, "/messages/");
-    DiscourseURL.rewrite(/^\/users$/, "/u");
-    DiscourseURL.rewrite(/^\/users\//, "/u/");
-    DiscourseURL.rewrite(/\/admin\/flags/, "/review");
-
     if (currentUser) {
       const username = currentUser.get("username");
       DiscourseURL.rewrite(

GitHub sha: 4def5a83

1 Like

This commit appears in #10298 which was merged by eviltrout.