Skip to content

Commit 6babb87

Browse files
committed
#451
1 parent 4abcf37 commit 6babb87

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

system/boilerplate/site/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
2424
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
2525
// Otherwise, leave segmentCount as 0.
26-
var segmentCount = {{ segmentCount }};
26+
var segmentCount = {{ ghPagesURLParamCount }};
2727

2828
var l = window.location;
2929
l.replace(

system/lib/HAXCMSSite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function rebuildManagedFiles() {
193193
'description' => $this->manifest->description,
194194
'forceUpgrade' => $this->getForceUpgrade(),
195195
'swhash' => array(),
196-
'segmentCount' => 2,
196+
'ghPagesURLParamCount' => 0,
197197
'licenseLink' => $licenseLink,
198198
'licenseName' => $licenseName,
199199
'serviceWorkerScript' => $this->getServiceWorkerScript($this->basePath . $this->manifest->metadata->site->name . '/'),

system/lib/Operations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ public function publishSite() {
14171417
'description' => $site->manifest->description,
14181418
'forceUpgrade' => $site->getForceUpgrade(),
14191419
'swhash' => array(),
1420-
'segmentCount' => 1,
1420+
'ghPagesURLParamCount' => 1,
14211421
'licenseLink' => $licenseLink,
14221422
'licenseName' => $licenseName,
14231423
'serviceWorkerScript' => $site->getServiceWorkerScript('/' . $site->manifest->metadata->site->name . '/', TRUE),
@@ -1456,7 +1456,7 @@ public function publishSite() {
14561456
$templateVars['basePath'] = $parts['base'];
14571457
}
14581458
if ($templateVars['basePath'] == '/') {
1459-
$templateVars['segmentCount'] = 0;
1459+
$templateVars['ghPagesURLParamCount'] = 0;
14601460
}
14611461
// now we need to update the SW to match
14621462
$templateVars['serviceWorkerScript'] = $site->getServiceWorkerScript($templateVars['basePath'], TRUE);

0 commit comments

Comments
 (0)