On Fri, Jul 8, 2022, 09:45 Matt Jones <m...@borninthe80s.co.uk> wrote:
> Hi all, > > We were on v1 and recently moved to 1.4. > > I think you added a new feature that if the user has only access to one > connection that you now auto redirect them into the virtual machine. > No - this has actually been the behavior for quite some time, since before even 1.0.0. If a user has access to only one connection, and does not have access to any admin functions, they will be taken to their single connection immediately upon login. Is it possible to turn this off in the code? > > We have a use case in that we added power buttons to the connection on the > home page allowing the the user to power the virtual machine on/off as > required. > > When they have the single connection and the machine is powered off they > get stuck in a loop and can’t get back to the home page to power the > machine on. > No - this behavior is not configurable, and I wouldn't recommend looking to disable behavior that is specifically intended to avoid presenting the user with a list having only one choice. If you have an extension that adds power buttons, a better approach would be to ensure your extension works as intended even if the user is not on the home screen. You could: * Present buttons for the current connection on the connection screen, such as within the menu or the error notification. * Automatically and transparently power-on when the user attempts to connect to a connection that is powered off, rather than rely on a manual button click. * ... or both. - Mike