Flexible url switching