Skip to content

Commit

Permalink
Fixed siteUrl trailing slash issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Balazs Csaba committed Nov 10, 2015
1 parent be24716 commit 4ee3b96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions languagelink/services/LanguageLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ private function _parseUrl($url, $localeCode)

// Homepage doesn't need trailing slash
if ($url != '') {
// make sure baseUrl has trailing slash
$baseUrl = rtrim($baseUrl, '/') . '/';
// make sure url has no starting slash
$url = ltrim($url, '/');

$url = $url.$trailing;
}

Expand Down

0 comments on commit 4ee3b96

Please sign in to comment.