fix for friendly_id (url's are now gerated using resource.id instead of resource)