Skip to content

Commit d64f441

Browse files
committed
Added / to the end of blog homepage if traling slashes is disabled
1 parent 491c80c commit d64f441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Model/Url.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ public function getBaseUrl()
146146
'_direct' => $this->getBasePath(),
147147
'_nosid' => $this->storeId ?: null
148148
]);
149+
if ($url[strlen($url) - 1] != '/') {
150+
$url .= '/';
151+
}
149152
$url = $this->trimSlash($url);
150153
return $url;
151154
}

0 commit comments

Comments
 (0)