Remove old redirect rules

This commit is contained in:
Robin Ward 2020-07-23 13:19:32 -04:00
parent 06a3fd0566
commit 4def5a8339
1 changed files with 0 additions and 10 deletions

View File

@ -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(