createUrl adding p=actions
craft::$app-&gt;urlManager-&gt;createUrl will always return an action url because in the end this function does return UrlHelper::actionUrl($route, $params);

You want to create a basic site url so you need to do

UrlHelper::url('', ['state' =&gt; 'KR'] )