Issue #2013785 by markpavlitski, jakob123, dbazuin, seanB, rclemings: Redirect loop occurs when visiting a directory with deslash enabled