Move url specific logic to Link class