current() public static method (available since version 2.0.3)
Creates a URL by using the current route and the GET parameters. You may modify or remove some of the GET parameters, or add additional query parameters through the $params parameter. In particular, if you specify a parameter to be null, then this parameter will be removed from the existing GET parameters; all other parameters specified in $params will be merged with the existing GET parameters. For example, // assume $_GET = ['