Completed
Push — master ( 2c34c5...280b2d )
by Jan
04:15
created
src/Controller/RedirectController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         //$new_url = str_replace($request->getPathInfo(), '/' . $locale . $request->getPathInfo(), $request->getUri());
79
-        $new_url = $request->getUriForPath('/' . $locale . $request->getPathInfo());
79
+        $new_url = $request->getUriForPath('/'.$locale.$request->getPathInfo());
80 80
 
81 81
         //If either mod_rewrite is not enabled or the index.php version is enforced, add index.php to the string
82 82
         if (($this->enforce_index_php || !$this->checkIfModRewriteAvailable())
83 83
             && strpos($new_url, 'index.php') === false) {
84 84
             //Like Request::getUriForPath only with index.php
85
-            $new_url = $request->getSchemeAndHttpHost(). $request->getBaseUrl().'/index.php/' . $locale . $request->getPathInfo();
85
+            $new_url = $request->getSchemeAndHttpHost().$request->getBaseUrl().'/index.php/'.$locale.$request->getPathInfo();
86 86
         }
87 87
         return $this->redirect($new_url);
88 88
     }
Please login to merge, or discard this patch.