Changing the Group URL

Whenever user is loggedin then the group url in the activity page is coming someting like
http://www.mydomain.com/groups/profile/GUID/TITLE 

But when the user is not loggedin the the same url is coming something like
http://www.mydomain.com/view/GUID

i want my link to be "/groups/profile/GUID/TITLE" insted of "/view/GUID" for all the group links.

Kindly tell me how to do it.!! 

[Note: Blogs, Bookmarks are working fine the link appreas as required the problem is only with the group urls.]