ui: Fix for $resource trimming trailing slashes
v1.0.7