Skip to content

feat(Console): link URLs in console output - #2012

Closed
pedrolamas wants to merge 2 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/console-clickable-urls
Closed

pedrolamas wants to merge 2 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/console-clickable-urls

Conversation

@pedrolamas

@pedrolamas pedrolamas commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

URLs in console response entries are now links that open in a new tab, using the existing linkExternalUrls helper.

  • Commands are not linked inside URLs: the command regex now matches URLs first, so SAVE_CONFIG in a path stays part of the URL.
  • Clicking a URL does not fill the command box: itemClick ignores anchors with an href.
  • Links and commands share a colour, and links are also underlined.

Limitations

  • Moonraker sends Content-Disposition: attachment for /server/files/*, so these links download the file rather than display it.
  • Moonraker only exempts .png and .jpg GETs from authentication, so links to other file types fail on a secured instance.
  • Macros that emit a raw <a href="https://…"> are not supported: its URL gets linked again, so it will render wrongly.

Testing

Lint, type-check and unit tests pass, but no unit test covers this path and it has not been run in a browser yet. To check against the simulator:

RESPOND MSG="see http://voron24/server/files/logs/SAVE_CONFIG/test.png. Run SAVE_CONFIG"
  • The whole URL is one underlined link, with the trailing . outside it, and it opens in a new tab.
  • Clicking the URL leaves the command box empty, and clicking the trailing SAVE_CONFIG fills it.
  • With a console search matching part of the URL, the link still opens.
image

Resolves #2008

🤖 Generated with Claude Code

URLs in response entries now open in a new tab. Commands are not linked
inside URLs, and clicking a URL does not fill the command box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added the FR - Enhancement New feature or request label Nov 2, 2026
@pedrolamas pedrolamas added this to the 1.37.8 milestone Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Bundle size report (gzip)

Chunk Base Head Δ
assets/index-*.css 26.4 kB 26.4 kB +34 B
assets/index-*.js 166.9 kB 166.9 kB +33 B
sw.js 11.2 kB 11.2 kB +4 B
assets/History-*.js 4.5 kB 4.5 kB +2 B
assets/Jobs-*.js 496 B 498 B +2 B
assets/Configure-*.js 774 B 775 B +1 B
assets/Console-*.js 368 B 367 B -1 B
assets/ConsoleCard-*.js 2.0 kB 2.0 kB +1 B
assets/Diagnostics-*.js 15.9 kB 15.9 kB -1 B
assets/FileSystem-*.js 32.4 kB 32.4 kB -1 B
assets/FullscreenCamera-*.js 422 B 423 B +1 B
assets/MacroCategorySettings-*.js 2.0 kB 2.0 kB -1 B
assets/Timelapse-*.js 1.9 kB 1.9 kB -1 B
assets/TimelapseRenderSettingsDialog-*.js 1.8 kB 1.8 kB -1 B
Total 2.9 MB 2.9 MB +72 B

120 chunks compared, 14 changed. Sizes are gzip, matching what nginx serves.

@pedrolamas pedrolamas closed this Nov 4, 2026
@pedrolamas
pedrolamas deleted the pedrolamas/console-clickable-urls branch November 7, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FR - Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Links to URL in the Console

1 participant