Acts as url generator called only when slug is empty