diff --git a/LinqToQuerystring.WebApi/LinqToQueryableAttribute.cs b/LinqToQuerystring.WebApi/LinqToQueryableAttribute.cs
index 722589a..057678e 100644
--- a/LinqToQuerystring.WebApi/LinqToQueryableAttribute.cs
+++ b/LinqToQuerystring.WebApi/LinqToQueryableAttribute.cs
@@ -4,8 +4,8 @@
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
+ using System.Web;
using System.Web.Http.Filters;
-
using ActionFilterAttribute = System.Web.Http.Filters.ActionFilterAttribute;
public class LinqToQueryableAttribute : ActionFilterAttribute
@@ -29,7 +29,7 @@ public override void OnActionExecuted(HttpActionExecutedContext actionExecutedCo
if (originalquery != null)
{
- var queryString = actionExecutedContext.Request.RequestUri.Query;
+ var queryString = HttpUtility.UrlDecode(actionExecutedContext.Request.RequestUri.Query);
var genericType = originalquery.GetType().GetGenericArguments()[0];
var reply = originalquery.LinqToQuerystring(genericType, queryString, this.forceDynamicProperties, this.maxPageSize);
diff --git a/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi.csproj b/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi.csproj
index 36b9eba..064b04c 100644
--- a/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi.csproj
+++ b/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi.csproj
@@ -35,6 +35,7 @@
+
diff --git a/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi2.csproj b/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi2.csproj
index 8793da9..75ff56d 100644
--- a/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi2.csproj
+++ b/LinqToQuerystring.WebApi/LinqToQuerystring.WebApi2.csproj
@@ -45,6 +45,7 @@
False
..\packages\Microsoft.AspNet.WebApi.Client.5.0.0\lib\net45\System.Net.Http.Formatting.dll
+
False
..\packages\Microsoft.AspNet.WebApi.Core.5.0.0\lib\net45\System.Web.Http.dll