git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit bb8d377b authored by mmn's avatar mmn

Redirect to group URL for /nickname pattern

parent 4a6f509a
......@@ -66,6 +66,10 @@ abstract class ProfileAction extends ManagedAction
$this->user = User::getKV('nickname', $nickname);
if (!$this->user) {
$group = Local_group::getKV('nickname', $nickname);
if ($group instanceof Local_group) {
common_redirect($group->getProfile()->getUrl());
}
// TRANS: Client error displayed when calling a profile action without specifying a user.
$this->clientError(_('No such user.'), 404);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment