Use _url instead _path
project_by_slug_url need to be closed
Fix a logic error [Fix #53155191]

condition need to be true when permalink is not in the routes and the
permalink not exists on database