diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index e96761757..6d7006ded 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -389,8 +389,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid // Unset base for homepage URLSegments in their default language. // Homepages with action parameters or in different languages - // need to retain their URLSegment. - if(!$action && $base == RootURLController::get_homepage_link()) { + // need to retain their URLSegment. We can only do this if the homepage + // is on the root level. + if(!$action && $base == RootURLController::get_homepage_link() && !$this->ParentID) { $base = null; if($this->hasExtension('Translatable') && $this->Locale != Translatable::default_locale()){ $base = $this->URLSegment;