diff --git a/src/Patchwork/Controller/FrontController.php b/src/Patchwork/Controller/FrontController.php
index <HASH>..<HASH> 100644
--- a/src/Patchwork/Controller/FrontController.php
+++ b/src/Patchwork/Controller/FrontController.php
@@ -43,7 +43,7 @@ class FrontController extends AbstractController
             function () use ($app) {
                 $root = str_replace('index.php/', '', $app['url_generator']->generate('home'));
 
-                if ($_SERVER['REQUEST_URI'] != $root) {
+                if ($app['request']->getRequestURI() != $root) {
                     return $app->redirect($root, 301);
                 }
got rid of native request uri check