An improved URL selector to choose between internal models and external URLs