]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Added documentation
[friendica.git] / boot.php
index 0a2f5c50cdff406c0d3d585e3ca8683639c00afd..5cc34993112498274b9c540ada69fe3ed3906b26 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1509,6 +1509,9 @@ function killme() {
  * @brief Redirect to another URL and terminate this process.
  */
 function goaway($s) {
+       if (!strstr(normalise_link($s), normalise_link(App::get_baseurl())))
+               $s = App::get_baseurl()."/".$s;
+
        header("Location: $s");
        killme();
 }