CMSApplicationWhen Joomla does its initial routing in
Joomla\CMS\Application\CMSApplication in the
route method, the JUri object is cloned. The line is:
$uri = clone \JUri::getInstance();
Looking at the code for
\JUri::getInstance(), when called without a parameter, it will contain the URI based on the
Why is this cloned, rather than just assigned?