aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 193b72a4e..37aa839a9 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -195,6 +195,15 @@ function groups_setup_sidebar_menus() {
*/
function groups_page_handler($page) {
+ // forward old profile urls
+ if (is_numeric($page[0])) {
+ $group = get_entity($page[0]);
+ if (elgg_instanceof($group, 'group', '', 'ElggGroup')) {
+ system_message(elgg_echo('changebookmark'));
+ forward($group->getURL());
+ }
+ }
+
elgg_load_library('elgg:groups');
elgg_push_breadcrumb(elgg_echo('groups'), "groups/all");