@dragonfighter. Thanks for posting. I just thought I would point out that
Uri::current(); is pretty much exactly the same as
JUri::getInstance()->toString();. It is essentially the following:
Uri::getInstance()->toString(array(‘scheme’,‘host’,‘port’,‘path’));
You can verify this by looking at the Uri.php file in the Joomla Platform code.