add type to url