Checking if there is a location defined
Fixed view url parsing