diff --git a/code/ExternalURL.php b/code/ExternalURL.php index 7a41c95..9e723a8 100644 --- a/code/ExternalURL.php +++ b/code/ExternalURL.php @@ -27,7 +27,7 @@ public function Nice() unset($parts[$part]); } - return rtrim(http_build_url($parts), "/"); + return http_build_url($parts); } } diff --git a/code/ExternalURLField.php b/code/ExternalURLField.php index 2b9eb06..3fff96c 100644 --- a/code/ExternalURLField.php +++ b/code/ExternalURLField.php @@ -152,7 +152,7 @@ protected function rebuildURL($url) } } - return rtrim(http_build_url($defaults, $parts), "/"); + return http_build_url($defaults, $parts); } /**