Fixed an issue where the location could not be found if the URL did not end with a (forward/back)slash