Fix page name validation.
Returns NotFound() if the repository does not exist.