CRM-13737 drupal integration - Use basename fn to extract last dir in the url as suggested by @totten