Fixed url routing and allowed for empty paths to be used