feat: support URL routes to open terminal directly (#156) #503

Merged
ZacharyZcR merged 3 commits from feat/url-terminal-route into dev-1.10.1 2026-01-13 05:57:10 +00:00
ZacharyZcR commented 2026-01-13 00:15:31 +00:00 (Migrated from github.com)

Summary

  • Adds /terminal/{hostNameOrId} route for new format
  • Keeps /hosts/{id}/terminal for backward compatibility
  • Smart detection: numeric IDs for ID lookup, otherwise name lookup
  • Cleans URL after opening to prevent duplicate on refresh
  • Shows toast error when host not found

Also includes build fixes for merge conflict artifacts in dev-1.10.1.

Test plan

  • Visit /terminal/123 → opens terminal for host with ID 123
  • Visit /terminal/myserver → opens terminal for host named "myserver"
  • Visit /hosts/123/terminal → legacy format still works
  • Visit non-existent host → shows error toast
  • Refresh page after opening → URL is cleaned, no duplicate

Closes https://github.com/Termix-SSH/Support/issues/156

## Summary - Adds `/terminal/{hostNameOrId}` route for new format - Keeps `/hosts/{id}/terminal` for backward compatibility - Smart detection: numeric IDs for ID lookup, otherwise name lookup - Cleans URL after opening to prevent duplicate on refresh - Shows toast error when host not found Also includes build fixes for merge conflict artifacts in dev-1.10.1. ## Test plan - [ ] Visit `/terminal/123` → opens terminal for host with ID 123 - [ ] Visit `/terminal/myserver` → opens terminal for host named "myserver" - [ ] Visit `/hosts/123/terminal` → legacy format still works - [ ] Visit non-existent host → shows error toast - [ ] Refresh page after opening → URL is cleaned, no duplicate Closes https://github.com/Termix-SSH/Support/issues/156
Sign in to join this conversation.