@@ -39,7 +39,9 @@ |
||
39 | 39 | |
40 | 40 | // If this is a '/' slug, it indicates the homepage for this locale. In this case, |
41 | 41 | // we wont be trimming the slash |
42 | - if($slug === '/') return $slug; |
|
42 | + if($slug === '/') { |
|
43 | + return $slug; |
|
44 | + } |
|
43 | 45 | |
44 | 46 | if ($this->startsWithBaseUrlSegment($slug)) { |
45 | 47 | $slug = trim(substr($slug, strlen($this->baseUrlSegment)), '/'); |