From 477ec6626d40f86a01e7e776988366ec7b712faf Mon Sep 17 00:00:00 2001
From: Bohdan Korablov <bkorablov@magento.com>
Date: Thu, 20 Oct 2016 10:15:45 +0300
Subject: [PATCH] MAGETWO-56317: [GitHub] -[2.1.0] underscore in site url
 breaks admin redirect - The page isn't redirecting properly #5809

---
 lib/internal/Magento/Framework/Url/SimpleValidator.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/internal/Magento/Framework/Url/SimpleValidator.php b/lib/internal/Magento/Framework/Url/SimpleValidator.php
index a7ce3b53611..298a90a44e4 100644
--- a/lib/internal/Magento/Framework/Url/SimpleValidator.php
+++ b/lib/internal/Magento/Framework/Url/SimpleValidator.php
@@ -16,12 +16,15 @@ class SimpleValidator
      * Set allowed Schemes
      *
      * @param array $allowedSchemes
+     * @return $this
      */
     public function setAllowedSchemes(array $allowedSchemes)
     {
         if (!empty($allowedSchemes)) {
             $this->allowedSchemes = $allowedSchemes;
         }
+
+        return $this;
     }
 
     /**
-- 
GitLab