]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Merge pull request #6076 from nupplaphil/cache_test_fix
[friendica.git] / mod / randprof.php
index 18bcb236f8a98504e94acbe860b41c2d2ee82e08..d0b3c4ef85dc629aaab75d2def14c449d9ff1737 100644 (file)
@@ -13,8 +13,9 @@ function randprof_init(App $a)
        $x = GContact::getRandomUrl();
 
        if ($x) {
-               goaway(Contact::magicLink($x));
+               $link = Contact::magicLink($x);
+               $a->redirect($link);
        }
 
-       goaway(System::baseUrl() . '/profile');
+       $a->internalRedirect('profile');
 }