fix ride segments to take URL or segment id