Reversing the trailing slash magic which was done hastily