Changing url calculation from slug to id