? in pattern for routing doesn't match

The Pattern

'pattern' => '(.*)products_id=([0-9]+)(.*)'

doesn’t match with (error 404)

print.php?products_id=245 //  (error 404)

but does match with

print.phpproducts_id=245 // action function is triggered

testing on regex101.com gives me a full match for every character

I guess kirby is looking for the file print.php?

any suggestions?

Update: I also can’t match

'pattern' => 'product.php?id=1'

Update2: I’m trying all kind of suggestions of escaping ?

Parameters and search strings are ignored in routes.

1 Like