Fixed up url <-> id relationship
fix link issue and add example for testing