XF 2.1 XF 2.1.9 - Route Filters broken.

  • Thread starter Thread starter Deleted member 91401
  • Start date Start date
D

Deleted member 91401

Guest
So after upgrading to 2.1.9, I've just tried to create a route filter.

I want to replace pages/microc with /microc so when you go to forums/microc it loads the page.

This already works fine for other pages I'm using.

However, I create the route as normal:

o1fZGW.png


However the page doesn't load unless you add two ending slashes?

Cq15b4.png


but when you add two slashes it works fine...

fobkY3.png
 
It's due to your inconsistent slashes in the find route. It should be pages/macroc/ -> macroc/.

Just noticed that before checking your reply. @Chris D thanks.

Probably too much work to add in but as a fool-proof for numpties like myself who haven't had their morning coffee yet is it not something you guys could build in to override if someone forgets to add the slash?
 
The slash isn't always required. It depends on the route being filtered.

The general rule of thumb is if the original URL has a slash, the new URL should too and the route filters should have the same slashes.
 
Top Bottom