Handling trailing slashes in angularUI router

后端 未结 6 725
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 06:59

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

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 07:11

    As of ui-router version 0.2.11 you can do this:

    $urlMatcherFactoryProvider.strictMode(false);
    

    This will treat URLs with and without trailing slashes identically.

提交回复
热议问题