From 5ad7dcf9fda8028c83059532e525f7d5ce324815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Mon, 21 Nov 2016 04:27:06 +0100 Subject: [PATCH] Fixed // on currentRoute urls. --- src/Pecee/SimpleRouter/Router.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Pecee/SimpleRouter/Router.php b/src/Pecee/SimpleRouter/Router.php index 5b382e8..c40ac9c 100644 --- a/src/Pecee/SimpleRouter/Router.php +++ b/src/Pecee/SimpleRouter/Router.php @@ -396,7 +396,7 @@ class Router /* Return current route if no options has been specified */ if ($name === null && $parameters === null) { - return '/' . trim(parse_url($this->request->getUri(), PHP_URL_PATH), '/') . '/' . $this->arrayToParams($getParams); + return '/' . trim(parse_url($this->request->getUri(), PHP_URL_PATH), '/') . $this->arrayToParams($getParams); } /* If nothing is defined and a route is loaded we use that */ @@ -434,8 +434,7 @@ class Router } /* No result so we assume that someone is using a hardcoded url and join everything together. */ - - return '/' . trim(join('/', array_merge((array)$name, (array)$parameters)), '/') . '/' . $this->arrayToParams($getParams); + return '/' . trim(join('/', array_merge((array)$name, (array)$parameters)), '/') . $this->arrayToParams($getParams); } /**