Replace profile tab GET parameter by route

This commit is contained in:
Hypolite Petovan 2020-01-27 19:21:18 -05:00
parent 74a25eb670
commit a607656607
9 changed files with 10 additions and 30 deletions

View file

@ -270,7 +270,7 @@ class Contact extends BaseModule
if (($a->argc == 3) && intval($a->argv[1]) && in_array($a->argv[2], ['posts', 'conversations'])) {
DI::baseUrl()->redirect('profile/' . $contact['nick']);
} else {
DI::baseUrl()->redirect('profile/' . $contact['nick'] . '?tab=profile');
DI::baseUrl()->redirect('profile/' . $contact['nick'] . '/profile');
}
}