Skip to content

Commit

Permalink
remove leading slash (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Sep 26, 2020
1 parent 7967a41 commit bec6531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/modules/simple_news_urls/classes/SimpleNewsUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit bec6531

Please sign in to comment.