mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user