mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
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:
parent
90fc2d15c4
commit
a5182b0d6c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user