make endpointless urls work