A fix on get url by type