Merge pull request #191 from satrun77/pulls/fix-trailing-slash

Ensure trailing slash removed from AbsoluteLink
This commit is contained in:
Will Rossiter 2023-08-29 16:36:46 +12:00 committed by GitHub
commit 523d196d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,6 @@ class GoogleSitemapController extends Controller
public function AbsoluteLink($action = null) public function AbsoluteLink($action = null)
{ {
return Controller::join_links(Director::absoluteBaseURL(), 'sitemap.xml', $action); return rtrim(Controller::join_links(Director::absoluteBaseURL(), 'sitemap.xml', $action), '/');
} }
} }