angular-ui/bootstrap — pull request #2635 by RichardLitt (2014-08-26 23:39:00+00:00)
Title: Removed unnecessary string replacements

If `.html` is removed from the end only to be added to the end, there's no reason to touch it. Also, `template` + `/` is the same as `template/`.

I haven't tested this, but I see absolutely no reason why this code isn't the same functionally.