URL is redirecting (301) when query string is passed through URL

The issue got resolved by disabling Yoast SEO plugin. What would be the reason for Yoast SEO plugin to cause this issue?