Append /spool to Spoolman iframe URL in inventory page

When Spoolman is enabled, the sidebar filament item embedded
  Spoolman at its root URL. Now navigates to <url>/spool so users
  land directly on the spool management page.
This commit is contained in:
maziggy
2026-03-25 15:14:37 +01:00
parent 7c20efb7c3
commit d749209ef4
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ export default function InventoryPageRouter() {
if (spoolmanSettings?.spoolman_enabled === 'true' && spoolmanSettings?.spoolman_url) {
return (
<iframe
src={spoolmanSettings.spoolman_url}
src={`${spoolmanSettings.spoolman_url.replace(/\/+$/, '')}/spool`}
className="h-full w-full border-0"
title="Spoolman"
sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"