Handling trailing slashes in angularUI router
It's been hours since I started working on this problem and I can't seem to get my head around the solution. I have an app that may result in users actually typing in the URL. In such cases it is not hard to believe that user might enter a trailing slash. For example, www.example.com/users/2 and www.example.com/edit/company/123 should be treated the same as www.example.com/users/2/ and www.example.com/edit/company/123/ This only needs to done for handling URL routing on the client side. I am not interested in handling trailing slashes in resource/API calls. I am only interested in handling