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.
This commit is contained in:
Robin Ward 2019-04-04 10:14:18 -04:00
parent 90fc2d15c4
commit a5182b0d6c

View File

@ -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");