Bugfixing redirects
- Adding App->redirect if both redirects are possible
This commit is contained in:
+1
-5
@@ -15,11 +15,7 @@ function randprof_init(App $a)
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user