Permalink
Browse files

fix(legacy_urls): adds missing forwarder for groups/forum/$guid

Adds a missing route for legacy groups/forum/$guid

Fixes #8493
  • Loading branch information...
hypeJunction committed Jun 16, 2015
1 parent 0c7687a commit 2b555f886cc4b348d38986c86bc1fb6ad041bac6
Showing with 8 additions and 1 deletion.
  1. +8 −1 mod/legacy_urls/start.php
@@ -295,7 +295,8 @@ function legacy_urls_file_forward($hook, $type, $result) {
/**
* Groups forwarder
* /groups/<guid>
- *
+ * /groups/forum/<guid>
+ *
* @param $hook string "route"
* @param $type string "groups"
* @param $result mixed Old identifier and segments
@@ -315,6 +316,12 @@ function legacy_urls_groups_forward($hook, $type, $result) {
return false;
}
}
+
+ if ($page[0] == 'forum') {
+ $url = "discussion/owner/{$page[1]}";
+ legacy_urls_redirect(legacy_urls_prepare_url($url));
+ return false;
+ }
}
/**

0 comments on commit 2b555f8

Please sign in to comment.