XF 2.0 Odd behavior with pagination and sub routes...

Jaxel

Well-known member
I have a route:
  • Route prefix: ewr-atendo
  • Sub-name: events
  • Route format: events/:int<event_id,event_title>/:page
  • Controller: EWR\Atendo:Event
Accessing my events index at ewr-atendo/events/ works great, it even paginates well at ewr-atendo/events/page-2.

I also have an events archive at ewr-atendo/events/archive.

But the pagination is not at ewr-atendo/events/archive/page-2, but is instead at ewr-atendo/events/page-2/archive.

Is this expected behavior?
 
Generally, yes, that's expected. If you don't specify an action in the route, it will be appended.

If you want archive/page-2, you need to define events/archive as a further sub-route.
 
Back
Top Bottom