FIX: recognize model and collection's url properly