diff --git a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
index 00316dd..00ab5c2 100644
--- a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
+++ b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs b/src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs
index e4afbaa..4ba5515 100644
--- a/src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs
+++ b/src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs
@@ -26,7 +26,7 @@ namespace DotNetCore.CAP
services.AddSingleton();
services.AddSingleton();
//services.AddScoped();
- services.AddScoped();
+ //services.AddScoped();
}
}
}
diff --git a/src/DotNetCore.CAP/Dashboard/DashboardContext.cs b/src/DotNetCore.CAP/Dashboard/DashboardContext.cs
index e0b8ecc..de6dd43 100644
--- a/src/DotNetCore.CAP/Dashboard/DashboardContext.cs
+++ b/src/DotNetCore.CAP/Dashboard/DashboardContext.cs
@@ -25,8 +25,6 @@ namespace DotNetCore.CAP.Dashboard
public DashboardResponse Response { get; protected set; }
- public ISession Session { get; protected set; }
-
public IServiceProvider RequestServices { get; protected set; }
}
@@ -44,7 +42,6 @@ namespace DotNetCore.CAP.Dashboard
Request = new CapDashboardRequest(httpContext);
Response = new CapDashboardResponse(httpContext);
RequestServices = httpContext.RequestServices;
- Session = httpContext.Session;
}
public HttpContext HttpContext { get; }
diff --git a/src/DotNetCore.CAP/Dashboard/HtmlHelper.cs b/src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
index 1a4c33c..8d7e42e 100644
--- a/src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
+++ b/src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
@@ -192,7 +192,7 @@ namespace DotNetCore.CAP.Dashboard
public NonEscapedString NodeSwitchLink(string id)
{
- return Raw($"{Strings.NodePage_Switch}");
+ return Raw($"{Strings.NodePage_Switch}");
}
#region MethodEscaped
diff --git a/src/DotNetCore.CAP/Dashboard/UrlHelper.cs b/src/DotNetCore.CAP/Dashboard/UrlHelper.cs
index 5cfb758..9222379 100644
--- a/src/DotNetCore.CAP/Dashboard/UrlHelper.cs
+++ b/src/DotNetCore.CAP/Dashboard/UrlHelper.cs
@@ -1,4 +1,5 @@
using System;
+using System.Net;
namespace DotNetCore.CAP.Dashboard
{
@@ -31,7 +32,7 @@ namespace DotNetCore.CAP.Dashboard
public string NodeSwitch(string id)
{
- return To("/nodes/node/" + id);
+ return To("/nodes/node/" + WebUtility.UrlEncode(id));
}
public string LinkToPublished()