Made it so that it uses the uri.path or / if the path is nil