From 7242b706f0c77847f95e3a0fd01fb6b6efffba7a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Nov 2018 08:24:31 -0500 Subject: [PATCH] Improve return path in mod/follow --- mod/follow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/follow.php b/mod/follow.php index 08f664d393..b92424c208 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -27,7 +27,7 @@ function follow_post(App $a) $uid = local_user(); $url = Strings::escapeTags(trim($_REQUEST['url'])); - $return_path = 'contacts'; + $return_path = 'follow?url=' . urlencode($url); // Makes the connection request for friendica contacts easier // This is just a precaution if maybe this page is called somewhere directly via POST