Fix bug whereby url would not be changed as pathway changed