No Hangfire Favicon.ico. Can you please add a dashboard option for us to provide a path to Favicon.ico

// hangfire blocks favicon.ico as bug fix: Hangfire 1.7.24
if (path.Equals("/favicon.ico")) {
byte[] bytes = EmbeddedResourceAccessor.GetBytes(“FaviconHangfire.favicon.ico”);
httpContext.Response.ContentType = “image/x-icon”;
httpContext.Response.ContentLength = bytes.Length;
httpContext.Response.StatusCode = (int)System.Net.HttpStatusCode.OK;
await httpContext.Response.Body.WriteAsync(bytes.AsMemory(0, bytes.Length));
}

1 Like

Hey Steward, how are you?

May I ask you more details on how you implemented that workaround?

Thanks in advance!

Just wanted to let you know that my latest pull request that addressed that issue was accepted and should be available on the next release 1.8.5.

So basically, after its release, you’ll be able to inform the favicon path inside the DashboardOptions class.

Hangfire 1.8.5 was released, so now whoever wants to display a favicon simply needs to set the new FaviconPath property inside the DashboardOptions class.

Just like this:

Thanks!