I’ve created a plugin to run arbitrary scripts within the Plex server’s filesystem. These scripts produce output on stdout and stderr. To display the output I’m splitting them by line, and creating a DirectoryObject with the line as the title.
The problem I’ve got is those DirectoryObject’s (as far as I can tell) have to do something when the user selects them. Ideally in this case I’d like the user to get redirected back to the list of scripts they can run. The most important thing for me though, is that a Plex client doesn’t treat selecting it as going further down the ‘tree’ of menu items, as if the user chooses to go back the script will get ran again, which the user may not want.
So, is it possible to have a menu item that when selected redirects to an earlier menu item, or perhaps does the equivalent of selecting the back arrow in the web client (going up a directory)?