- I’m hosting HangFire on Application server under - https://domainurl:portnumber/
And HangFire dashboard URL would be: https://domainurl:portnumber/backgroundqueues - Application server is accessed over Gateway: https://gatewayurl/bl
So, final HangFire dashboard URL would be: https://gatewayurl/bl/backgroundqueues
I’m configuring HangFire dashboard in Owin startup using below code:
app.UseHangfireDashboard("/backgroundqueues", dashboardOptions);
When I’m trying to access HangFire dashboard it is not able to load the CSS and JS files, as it is trying to locate them at https://gatewayurl/backgroundqueues instead of https://gatewayurl/bl/backgroundqueues
Also, when I’m accessing other links on home page.
For ex., Jobs, it is not loading correct url: It is loading https://gatewayurl/backgroundqueues/jobs/enqueued instead of https://gatewayurl/bl/backgroundqueues/jobs/enqueued
One possible solution is to make the configuration
app.UseHangfireDashboard("./backgroundqueues", dashboardOptions);
But, currently it is invalid configuration
OR
When the page is rendered all the relative paths have either “./” or nothing instead of “/”.
HangFire.Core.dll version: 1.6.15.0
Application .NET version: 4.6.1
Please help me in resolving the issue.
Thanks in advance.