Remove old redirect rules
This commit is contained in:
parent
06a3fd0566
commit
4def5a8339
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue