Only keep full id, if provided; produce shorty dynamically