Skip to content

Commit d48372e

Browse files
authored
SEF: Don't remove trailingslash on hp in a subdir (joomla#44205)
1 parent 4a18623 commit d48372e

File tree

1 file changed

+1
-1
lines changed
  • plugins/system/sef/src/Extension

1 file changed

+1
-1
lines changed

plugins/system/sef/src/Extension/Sef.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public function removeTrailingSlash(&$router, &$uri)
364364
{
365365
$path = $uri->getPath();
366366

367-
if ($path != '/' && str_ends_with($path, '/')) {
367+
if ($path != Uri::base(true) . '/' && str_ends_with($path, '/')) {
368368
$uri->setPath(substr($path, 0, -1));
369369
}
370370
}

0 commit comments

Comments
 (0)