aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-13 14:42:30 -0700
committerCash Costello <cash.costello@gmail.com>2012-07-13 14:42:30 -0700
commit901cb69ba0b40d247bea5b0e1b4e4588a86800c1 (patch)
tree219721ed17c67eae4a3e9ff946e756ffdd01e9d6 /mod/profile
parent0b00af1e77d7ffc5c739f7fa21f61886b5480e62 (diff)
parentd6953c9955b2b9e3c245936e448e7be41058bb9b (diff)
downloadelgg-901cb69ba0b40d247bea5b0e1b4e4588a86800c1.tar.gz
elgg-901cb69ba0b40d247bea5b0e1b4e4588a86800c1.tar.bz2
Merge pull request #318 from sembrestels/handle-all
Fixes #4687. Handle URLs on plugins that include only handler name.
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/start.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index abe044632..ab596f235 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -56,6 +56,8 @@ function profile_page_handler($page) {
$username = $page[0];
$user = get_user_by_username($username);
elgg_set_page_owner_guid($user->guid);
+ } elseif (elgg_is_logged_in()) {
+ forward(elgg_get_logged_in_user_entity()->getURL());
}
// short circuit if invalid or banned username