mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
Query string parsing does not work on Windows.
This commit is contained in:
@@ -102,7 +102,9 @@ namespace Radzen
|
||||
|
||||
private (string theme, bool? wcag, bool? rightToLeft) GetStateFromQueryString(string uri)
|
||||
{
|
||||
var query = HttpUtility.ParseQueryString(new Uri(uri).Query);
|
||||
var queryString = uri.Contains('?') ? uri[(uri.IndexOf('?') + 1)..] : string.Empty;
|
||||
|
||||
var query = HttpUtility.ParseQueryString(queryString);
|
||||
|
||||
bool? wcag = query.Get(options.WcagParameter) != null ? query.Get(options.WcagParameter) == "true" : null;
|
||||
bool? rtl = query.Get(options.RightToLeftParameter) != null ? query.Get(options.RightToLeftParameter) == "true" : null;
|
||||
|
||||
Reference in New Issue
Block a user