Fixed url building while using canonical ids