Bugfix cannot parse StringValues as bool. Use ToString first.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
@{
|
||||
var isDebug = false;
|
||||
var qryDebug = Context.Request.Query["umbDebug"].TryConvertTo<bool>();
|
||||
var qryDebug = Context.Request.Query["umbDebug"].ToString().TryConvertTo<bool>();
|
||||
isDebug = qryDebug.Success && qryDebug.Result;
|
||||
var backOfficePath = globalSettings.GetBackOfficePath(hostingEnvironment);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user