Make check  more correct if url has api and replace it with app.