FIX: Rewrite old `/admin/flags` links to use the review queue

FIX: Rewrite old /admin/flags links to use the review queue

Such links might be in present in old PMs. For example, a notification of outstanding flags.

New PMs should receive the correct link but this prevents 404s in the other case.

diff --git a/app/assets/javascripts/discourse/initializers/url-redirects.js.es6 b/app/assets/javascripts/discourse/initializers/url-redirects.js.es6
index dad0137..ecff5b3 100644
--- a/app/assets/javascripts/discourse/initializers/url-redirects.js.es6
+++ b/app/assets/javascripts/discourse/initializers/url-redirects.js.es6
@@ -15,6 +15,7 @@ export default {
     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");

GitHub sha: a5182b0d

This commit has been mentioned on Discourse Meta. There might be relevant details there: