set the TargetUrl of Ajaxresponse

Is there a way to set the "targetUrl" value from an ApplicationService?
I want use this property to redirect the user under a particular condition.
Im'm using the asp.netcore/angular template.
thanks
I want use this property to redirect the user under a particular condition.
Im'm using the asp.netcore/angular template.
thanks