url logic