if ($x) {
$link = Contact::magicLink($x);
- // @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
- if (filter_var($link, FILTER_VALIDATE_URL)) {
- System::externalRedirect($link);
- } else {
- $a->internalRedirect($link);
- }
+ $a->redirect($link);
}
$a->internalRedirect('profile');