browse/directory: Redirect to content view when path targets a file
requested to merge anlambert/swh-web:directory-view-redirect-to-content-when-path-targets-file into master
Browse views used to render a directory have a path query parameter to request the display of a sub-path reachable from the directory.
If the path was targeting a file, the views were returning a 404 error so prefer to redirect to the content view instead.
Related to #4331 (closed)
Edited by Antoine Lambert