2

Closed

Error when the request has an empty query string

description

Hi there,

Thanks for the great plugin.

Had an issue if the request has an empty query string eg: http://google.com/q

Fix:

On KeyGenerator.cs
Line 50:
                if (!string.IsNullOrEmpty(queryStringKey))
                {
                    if (!routeValues.ContainsKey(queryStringKey.ToLowerInvariant()))
                    {
                        routeValues.Add(queryStringKey.ToLowerInvariant(),
                                        context.HttpContext.Request.QueryString[queryStringKey].ToLowerInvariant());
                    }
                }
Hope it helps.

Thanks again for building this awesome plugin.
Closed Sep 11, 2013 at 7:49 PM by moonpyk
Changeset cfca5cc88b52457246de7c716c94e717135eec53 should have fixed this issue.

Feel free to reopen the ticket if you continue to experience any problem.

comments

williarob wrote Jun 28, 2012 at 2:36 PM

I had this same issue with a facebook widget that likes to append "?fb_xd_fragment" to the url. Solution above worked great! Thanks. Please add it to the official release.