-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image chrome tab error #2
Comments
Thanks for reporting @robertovaldesperez Looks like we need to adjust the Regex so that it skips the title header. Let me know if this is something you're keen to send a PR to fix, otherwise I'll take a look over the weekend. |
Don't worry, I'm not in a hurry, check it out on the weekend if you can. Thanks a lot @augustoproiete |
@robertovaldesperez I've just published Hangfire.Dashboard.Customize v1.1.0-preview which should fix the issue you reported and allow a little more control over the title replacement. When doing the replacement of the I also introduced a new property called The configuration code looks like this: app.UseHangfireDashboardCustomOptions(new HangfireDashboardCustomOptions
{
BrowserTitle = () => "Titulo",
DashboardTitle = () => "<img style=\"display: inline !important; margin-top: -7px;\" src=\"/images/logo.png\" /> Titulo",
}); e.g. If you have a chance, please take it for a spin and let me know if this fixes and/or if you see any other issue. <PackageReference Include="Hangfire.Dashboard.Customize" Version="1.1.0-preview" /> If everything works, I'll release version 1.1.0 RTM later this week. |
It works very well, thank you very much @augustoproiete. Is it possible to customize the icon of the browser tab? It would be great to be able to customize the image of the browser tab |
@robertovaldesperez Great! As for the icon of the browser tab, we need a slightly different approach because the Hangfire Dashboard doesn't define a link tag, so it's not a 1:1 replacement like the title is. I've just published Hangfire.Dashboard.Customize v1.1.0-preview2, which adds a couple more optional properties:
app.UseHangfireDashboardCustomOptions(new HangfireDashboardCustomOptions
{
BrowserTitle = () => "Titulo",
DashboardTitle = () => "<img style=\"display: inline !important; margin-top: -7px;\" src=\"/images/logo.png\" /> Titulo",
AppendToHead = () => "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />",
}); As before, if you have a chance, please take it for a spin and let me know if this works. <PackageReference Include="Hangfire.Dashboard.Customize" Version="1.1.0-preview2" /> Again, if everything works, I'll release version 1.1.0 RTM later this week. |
It works very well, thank you very much @augustoproiete. |
app.UseHangfireDashboardCustomOptions(new HangfireDashboardCustomOptions
{
DashboardTitle = () => "<img style="display: inline !important; margin-top: -7px;" src="/images/logo.png" /> Titulo"
});
The text was updated successfully, but these errors were encountered: