79603919

Date: 2025-05-02 18:19:40
Score: 1
Natty:
Report link

According to the Microsoft Documentation at: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.querystring.add?view=aspnetcore-9.0

Request.Querystring.Add returns a QueryString, not Void. However, Request.QueryString.Add does not mutate the Request Query String, therefore, you need to do something like this:

Request.QueryString = Request.QueryString.Add("returnUrl", url.ToString());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Karl Williams