You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After user changed localization language to different, SelectLanguage.cshtml posts
var returnUrl = string.IsNullOrEmpty(Context.Request.Path) ? "/" : $"{Context.Request.Path.Value}";
back, page will be re-rendered, but without query params: http://localhost:5000/Controller/Action
Can be easy fixed by changing SelectLanguage.cshtml to this one:
var returnUrl = string.IsNullOrEmpty(Context.Request.Path) ? "/" : $"{Context.Request.Path.Value}{Context.Request.QueryString}";
I can create PR with fix, just not sure if it's good idea.
The text was updated successfully, but these errors were encountered:
I use some query params for user registration or other purposes:
http://localhost:5000/Controller/Action?queryParam=value
After user changed localization language to different, SelectLanguage.cshtml posts
var returnUrl = string.IsNullOrEmpty(Context.Request.Path) ? "/" : $"{Context.Request.Path.Value}";
back, page will be re-rendered, but without query params:
http://localhost:5000/Controller/Action
Can be easy fixed by changing SelectLanguage.cshtml to this one:
var returnUrl = string.IsNullOrEmpty(Context.Request.Path) ? "/" : $"{Context.Request.Path.Value}{Context.Request.QueryString}";
I can create PR with fix, just not sure if it's good idea.
The text was updated successfully, but these errors were encountered: