Merge pull request #2228 from chlupac/Log_notification_improvement

Log notification improvement
This commit is contained in:
Shaun Walker
2022-06-08 15:48:17 -04:00
committed by GitHub
2 changed files with 11 additions and 2 deletions

View File

@ -207,7 +207,7 @@ namespace Oqtane.Infrastructure
{
if (userrole.Role.Name == RoleNames.Host)
{
var url = _accessor.HttpContext.Request.Scheme + "://" + _tenantManager.GetAlias().Name + "/admin/log";
var url = $"{_accessor.HttpContext.Request.Scheme}://{_tenantManager.GetAlias().Name}/admin/log?id={log.LogId}";
var notification = new Notification(log.SiteId.Value, userrole.User, "Site " + log.Level + " Notification", "Please visit " + url + " for more information");
_notifications.AddNotification(notification);
}