Add a trailing slash at the end of each url?

后端 未结 6 653
傲寒
傲寒 2020-12-01 00:15

I have a little problem here. I need to add a trailing slash at the end of each url in the site I\'m working on. I defined all the links inside the site to have a trailing s

6条回答
  •  醉梦人生
    2020-12-01 00:40

    The RouteCollection Class now has a AppendTrailingSlash boolean which you can set to true for this behavior.

提交回复
热议问题