XF 2.0 Can't use Route :str<id> on items which contain periods?

Jaxel

Well-known member
If I have a route controller set with it's format as: :str<id>

Going to index.php?prefix/this_is_a_test/ works perfectly fine in returning the ID in the parameter bag as "this_is_a_test".

However, if I instead go to index.php?prefix/this.is.a.test/, instead of returning the ID properly, it returns the error:
The requested page could not be found. (Code: invalid_action, controller: My\Addon:Prefix, action: ThisIsATest)
 
You can't use periods in the ID portion of the route since they normally split the string and integer portion, if you use the link builder to generate your links it'll automatically replace these though
 
You can't use periods in the ID portion of the route since they normally split the string and integer portion, if you use the link builder to generate your links it'll automatically replace these though
What will it replace with?
 
Top Bottom