File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 (
Original file line number Diff line number Diff 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 . '/ ' ),
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments