]> git.mxchange.org Git - friendica.git/blobdiff - mod/filerm.php
Replace goaway location SESSION var return_url with page as string value
[friendica.git] / mod / filerm.php
index 71e0af08d4543fd77607e9c1836e72ff4a716b06..55b218e1519df0fd337321d21405ff9a3e21b28b 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 function filerm_content(App $a) {
 
@@ -24,9 +25,7 @@ function filerm_content(App $a) {
                file_tag_unsave_file(local_user(),$item_id,$term, $category);
        }
 
-       if (x($_SESSION,'return_url')) {
-               goaway(App::get_baseurl() . '/' . $_SESSION['return_url']);
-       }
+       goaway('/network');
 
        killme();
 }