strangely i need the fully qualified name here else i get an error, otherwise works great.

This commit is contained in:
Shannon
2019-08-16 15:34:49 +10:00
parent afca2e70bd
commit cd355910b3

View File

@@ -31,7 +31,8 @@ namespace Umbraco.Web.Profiling
// Remove Mini Profiler routes when not in debug mode
if (GlobalSettings.DebugMode == false)
{
var prefix = MiniProfiler.Settings.RouteBasePath.Replace("~/", string.Empty);
//NOTE: Keep the global fully qualified name, for some reason without it I was getting null refs
var prefix = global::StackExchange.Profiling.MiniProfiler.Settings.RouteBasePath.Replace("~/", string.Empty);
using (RouteTable.Routes.GetWriteLock())
{