Compare commits

..

2 Commits

Author SHA1 Message Date
Will Rossiter
523d196d12
Merge pull request #191 from satrun77/pulls/fix-trailing-slash
Ensure trailing slash removed from AbsoluteLink
2023-08-29 16:36:46 +12:00
Mohamed Alsharaf
f064330acd Ensure trailing slash removed from AbsoluteLink
This is to resolve duplicated trailing slash when add_trailing_slash
property is set to true in YML config.

Also, relates to #188
2023-08-29 15:57:24 +12:00

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), '/');
} }
} }