Skip to content

Commit

Permalink
Merge pull request #129 from OXID-eSales/SvenBrunk-patch-1
Browse files Browse the repository at this point in the history
Do not use DIRECTORY_SEPARATOR for URLs!
  • Loading branch information
mariolorenz authored Oct 15, 2024
2 parents 79b2ed8 + c294ae1 commit 47af560
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Service/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public function getControllerUrl(string $controller, array $optionalGetParameter
public function getShopUrl(): string
{
$facts = new Facts();
return rtrim($facts->getShopUrl(), DIRECTORY_SEPARATOR) .
DIRECTORY_SEPARATOR;
return rtrim($facts->getShopUrl(), '/') . '/';
}
}

0 comments on commit 47af560

Please sign in to comment.