issue with menu widget active class

yii2 menu widget url parameter has a bug so that if an item url was 'url =>[‘pruduct/index’] without any query parameter ,

and another item url was ‘url’ => [‘product/index’,‘cat’=>‘medicine’]

and if browser url was

localhost/advanced/index.php?product/index&cat=medicine

application will mark both item’s class as ‘active’ and this is not true . because first item url does’nt have any query parameter so shouldnt be mark as active

is there any solution?