mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use QueryHelpers.AddQueryString
This commit is contained in:
parent
557c4d065d
commit
9020f68ce1
@ -321,7 +321,7 @@ namespace Emby.Server.Implementations.HttpServer
|
|||||||
string pagePathWithoutQueryString = url.Split(new[] { '?' }, StringSplitOptions.RemoveEmptyEntries)[0];
|
string pagePathWithoutQueryString = url.Split(new[] { '?' }, StringSplitOptions.RemoveEmptyEntries)[0];
|
||||||
|
|
||||||
return newQueryString.Count > 0
|
return newQueryString.Count > 0
|
||||||
? $"{pagePathWithoutQueryString}?{string.Join("&", newQueryString.Select(value => value.Key + " = " + string.Join(", ", value.Value)))}"
|
? QueryHelpers.AddQueryString(pagePathWithoutQueryString, newQueryString.ToDictionary(kv => kv.Key, kv => kv.Value.ToString()))
|
||||||
: pagePathWithoutQueryString;
|
: pagePathWithoutQueryString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user