Fixed the trailing slash problem for angular 1.1.5.