fix for #1438 strip preceeding files path from url