Bugfix for endslash in requests for base path