mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #155 from shoaibali/master
Removed hard coding of HTTP protocol
This commit is contained in:
commit
e5ea8ebc35
@ -93,7 +93,7 @@ class SiteTreeSubsites extends DataExtension {
|
||||
$subsite = $this->owner->Subsite();
|
||||
$nested_urls_enabled = Config::inst()->get('SiteTree', 'nested_urls');
|
||||
if($subsite && $subsite->ID) {
|
||||
$baseUrl = 'http://' . $subsite->domain() . '/';
|
||||
$baseUrl = Director::protocol() . $subsite->domain() . '/';
|
||||
$baseLink = Controller::join_links (
|
||||
$baseUrl,
|
||||
($nested_urls_enabled && $this->owner->ParentID ? $this->owner->Parent()->RelativeLink(true) : null)
|
||||
|
Loading…
Reference in New Issue
Block a user