多语言切换 api 使用 UriFormat.Unescaped 有局限性 #4436
densen2014
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
多语言切换api,
var uri = new Uri(NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped);
我觉得可以改为
var uri = new Uri(NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery, UriFormat.SafeUnescaped);
不然Uri有特殊符号编码例如 / 的转码, 这里再转一次会出错
Beta Was this translation helpful? Give feedback.
All reactions