refs #1 modified a issue that returned different results, when there is no slash of last url character