dshoreman / servidor

A modern web application for managing servers
GNU Lesser General Public License v2.1
9 stars 11 forks source link

Opening dirs in file viewer should redirect to browser #560

Open dshoreman opened 1 year ago

dshoreman commented 1 year ago

If you pass a directory to the file editor, e.g. /files/edit/?f=%2Ftmp it will attempt to open it as if it were a file.
The result is an "Unsupported filetype directory" error.

Instead, that error should be caught (probably in the vue route handlers) so that it can redirect to the same path without edit/. Likewise, if ?f is an empty string or not set at all, it should redirect to /files.