*/
use Friendica\App;
use Friendica\Core\System;
+use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
$x = GContact::getRandomUrl();
if ($x) {
- goaway(Profile::zrl($x));
+ $link = Contact::magicLink($x);
+ $a->redirect($link);
}
- goaway(System::baseUrl() . '/profile');
+ $a->internalRedirect('profile');
}