]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Objects.php
Use DI::baseUrl() for Search\Index.php
[friendica.git] / src / Module / Objects.php
index 4817811a34eb571fca77190c77c9d58b92794b4b..e2f21af1a5187374bf7919cc92b9d42ca1b1a403 100644 (file)
@@ -25,7 +25,7 @@ class Objects extends BaseModule
                }
 
                if (!ActivityPub::isRequest()) {
-                       $a->internalRedirect(str_replace('objects/', 'display/', $a->query_string));
+                       DI::baseUrl()->redirect(str_replace('objects/', 'display/', DI::args()->getQueryString()));
                }
 
                /// @todo Add Authentication to enable fetching of non public content