diff --git a/system/modules/simple_news_urls/classes/SimpleNewsUrls.php b/system/modules/simple_news_urls/classes/SimpleNewsUrls.php index ffa2fe9..f44214f 100644 --- a/system/modules/simple_news_urls/classes/SimpleNewsUrls.php +++ b/system/modules/simple_news_urls/classes/SimpleNewsUrls.php @@ -161,7 +161,7 @@ public function parseArticles($objTemplate, $arrArticle, $objModule) $strRequest = Environment::get('requestUri'); // remove script name - $strRequest = preg_replace('~^'.Environment::get('scriptName').'/~', '', $strRequest); + $strRequest = ltrim(preg_replace('~^'.Environment::get('scriptName').'/~', '', $strRequest), '/'); // remove language, if applicable if (Config::get('addLanguageToUrl'))