Ok so this is my routing settings:
array(
'event/cost/<cost>'=> 'event/index'
'event/location/<locationSlug>'=>'event/index'
'event/categories/<categories>'=>'event/index'
'event/query/<query>'=>'event/index'
'event/categories/<categories>/query/<query>'=>'event/index'
'event/location/<locationSlug>/categories/<categories>'=>'event/index'
'event/location/<locationSlug>/query/<query>'=>'event/index'
'event/location/<locationSlug>/categories/<categories>/query/<query>'=>'event/index'
'event/cost/<cost>/location/<locationSlug>' => 'event/index'
'event/cost/<cost>/categories/<categories>' => 'event/index'
'event/cost/<cost>/query/<query>' => 'event/index'
'event/cost/<cost>/categories/<categories>/query/<query>' => 'event/index'
'event/cost/<cost>/location/<locationSlug>/categories/<categories>'=>'event/index'
'event/cost/<cost>/location/<locationSlug>/query/<query>'=>'event/index'
'event/cost/<cost>/location/<locationSlug>/categories/<categories>/query/<query>'=>'event/index'
);
event/index is a filter and i want to be able to access it both by
-
event/cost/200/location/new-york
-
event/location/new-york
-
event/location/new-york/query/nightclub
well you get the idea?
the problem is, only the first 4 paths work.
if I, as an example, try
$this->createUrl('event/index', array(
'locationSlug' => 'new-york',
'query' => 'nightclub'
);
I don’t get “/location/new-york/query/nightclub” as expected, but instead the URL returned is "/location/new-york?query=nightclub.
A solution or idea on how to work around it is very much appreciated as I’m kinda on deadline with this particular part… Thanks!
edit: edited the routing to make it more readable