[FEATURE REQUEST] Middle-click Console to open in a new browser tab (VM, LXC, Shell)

Victor_root

Member
Jan 24, 2024
7
6
8
Hi,Hi,

I would like to request a small but very useful Web UI improvement for Proxmox VE.

Current behavior:
- The main "Console" button opens the console using the current/default viewer behavior
- xterm.js and noVNC are typically opened in a separate browser window/popup
- middle-click is not handled in a useful browser-native way
- middle-click on some console-related actions can lead to an unwanted extra tab instead of the expected console behavior

Requested behavior:
Please add support for middle-click on console actions so that web-based consoles can be opened directly in a new browser tab.

More specifically:

1. Main "Console" button
- Middle-click on the main Console button should open the default web console in a new browser tab
- It should reuse the normal Proxmox logic for viewer selection
- Left-click behavior should remain completely unchanged

2. Console menu entries
- Middle-click on "noVNC" should open noVNC in a new browser tab
- Middle-click on "xterm.js" should open xterm.js in a new browser tab
- Middle-click on "SPICE" should behave like a normal click (download / launch behavior), without opening an extra useless browser tab

3. Scope
This would be useful for:
- VMs
- LXC containers
- node shell

Why this would help:
A lot of admins work with many guests and many consoles at the same time. Managing them as browser tabs is much more convenient than handling multiple popup windows. It fits normal browser workflow much better and makes the UI feel more natural for power users.

Important note:
This request is only about middle-click behavior.
Normal left-click behavior should stay exactly as it is today.

I have tested a local patch for this in my own environment on:
- Proxmox VE 8.4.14
- Proxmox VE 8.4.17
- Proxmox VE 9.1.1

It works well for my use case and keeps left-click behavior unchanged.

For anyone who wants this immediately, I also published a temporary local patch script here:

One-line launch:
Bash:
bash <(curl -fsSL https://raw.githubusercontent.com/Victor-root/Proxmox-Tools/main/scripts/pve-console-newtab.sh)

Of course, this is only an unsupported local workaround and will be overwritten by updates, so a native implementation in Proxmox VE would be much better.

Thanks.