Yes i made a small change in start.php file for group as below
function groups_url($entity){
$title = elgg_get_friendly_title($entity->name);
if (!($user instanceof ElggUser)) {
$user = elgg_get_logged_in_user_entity(); }
if (!($user instanceof ElggUser))
{ return false; }
if(is_group_member($entity->guid, $user->getGUID())==true) {
return "groups/activity/{$entity->guid}/$title"; }
else{
return "groups/profile/{$entity->guid}/$title";
}
}
I guess this is where the problem was... "return false" on the 6th line of the above code was actually changing the URL. Thanks for the help. I have fixed it.
can replace address of groups by short url?
groups/profile/guid/title
to
groups/title
[Moderator: this comment was off-topic. It was moved to its own topic.]
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.