Changed url condition in init.