XF 2.0 Make pages work without trailing slash?

xSpeced

Member
Is there a way to make it so pages will work without a trailing slash?
For example, even on this forum

https://xenforo.com/community/pages/example-page/ will work while
https://xenforo.com/community/pages/example-page will not.

I used the route filter to change my example.com/pages/page1 to example.com/info/more. Under XF1.5, both example.com/info/more and example.com/info/more/ will result in the same page. The one without the trailing slash will have it automatically added.
 
There isn't control over that at this time. There are actually a number of different locations in XF1 that would work the same way, though pages were an exception the other way.

The links should always be generated with the trailing slash, so it generally shouldn't be a significant issue unless you see users regularly manually changing the URLs.
 
Top Bottom