Fix Dashboard /_blazor endpoint conflict with host Blazor apps#2975
Merged
Fix Dashboard /_blazor endpoint conflict with host Blazor apps#2975
Conversation
Add MapQuartzDashboard(existingComponents) overload that integrates into the host's existing Blazor setup via AddAdditionalAssemblies, avoiding a duplicate /_blazor SignalR endpoint. Also extract inline JS to a Blazor JS initializer, inject dashboard CSS via HeadContent, and remove HealthChecks UI from the example app. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
3 tasks
This was referenced Apr 3, 2026
Merged
Closed
Merged
This was referenced Apr 13, 2026
This was referenced Apr 20, 2026
Open
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Fixes #2974
MapQuartzDashboard(existingComponents)overload that integrates into the host's existing Blazor setup viaAddAdditionalAssemblies, avoiding a duplicate/_blazorSignalR endpointQuartzDashboardApp.razorinto a Blazor JS initializer (Quartz.Dashboard.lib.module.js) that auto-loads in both standalone and integrated modes<HeadContent>inDashboardLayoutso it works when rendered inside a host app's root component@layout DashboardLayoutscoped toPages/so dashboard pages render correctly when discovered by the host's RouterUsage for apps with existing Blazor Server setup
Standalone usage (unchanged)
Test plan
Quartz.Examples.AspNetCore— dashboard at/quartzrenders and navigates correctly (standalone mode)MapRazorComponents<App>().AddInteractiveServerRenderMode()— dashboard works viaMapQuartzDashboard(blazor)without/_blazorconflict🤖 Generated with Claude Code