diff --git a/libraries/src/Router/SiteRouter.php b/libraries/src/Router/SiteRouter.php
index ff4793c0f5fc0..3bb3d267249a5 100644
--- a/libraries/src/Router/SiteRouter.php
+++ b/libraries/src/Router/SiteRouter.php
@@ -602,7 +602,7 @@ protected function processParseRules(&$uri, $stage = self::PROCESS_DURING)
if ($start !== null)
{
$uri->delVar('start');
- $vars['limitstart'] = $start;
+ $uri->setVar('limitstart', $start);
}
}
}
diff --git a/templates/protostar/offline.php b/templates/protostar/offline.php
index 7a0ef5c47861e..ffb97ea54860e 100644
--- a/templates/protostar/offline.php
+++ b/templates/protostar/offline.php
@@ -9,6 +9,8 @@
defined('_JEXEC') or die;
+use Joomla\CMS\Uri\Uri;
+
/** @var JDocumentHtml $this */
$twofactormethods = JAuthenticationHelper::getTwoFactorMethods();
@@ -116,7 +118,7 @@
-
diff --git a/templates/system/offline.php b/templates/system/offline.php
index 391a2edc4a4a2..39ede4b1ea5ca 100644
--- a/templates/system/offline.php
+++ b/templates/system/offline.php
@@ -9,6 +9,8 @@
defined('_JEXEC') or die;
+use Joomla\CMS\Uri\Uri;
+
/** @var JDocumentHtml $this */
$app = JFactory::getApplication();
@@ -58,7 +60,7 @@
-
diff --git a/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php b/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php
index 9037fb1160af4..07b6b2d6bc1f7 100644
--- a/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php
+++ b/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php
@@ -1130,7 +1130,7 @@ public function testBuildSefRoute($url, $expected)
*/
public function testProcessParseRules()
{
- $uri = new JUri('index.php?start=42');
+ $uri = new JUri('index.php?limit=30&start=42');
$object = new JRouterSite(
array(),
@@ -1144,8 +1144,8 @@ public function testProcessParseRules()
$vars = $processParseRulesMethod->invokeArgs($object, array(&$uri));
- $this->assertEquals('index.php', $uri->toString());
- $this->assertEquals(array('limitstart' => '42'), $vars);
+ $this->assertEquals('index.php?limit=30&limitstart=42', $uri->toString());
+ $this->assertEquals(array(), $vars);
}
/**