View Page Breaking Routes
I've just added an infolist to a resource to allow viewing of records, but it's breaking routes. I have sub-routes, so for example, Activities can have categories.
The routing is:
/activities
/activities/categories
I've fixed the issue by adding a suffix to the getPages:
Just wanted to check, is this the best approach or is there a better way?
5 Replies
Make sure the categories route is defined before the view route and it should work.
How would I go about that please?
Move the route declaration to the right line.
Can you show the full
getPages()
method?Oh, I've moved it right up to the top:
That seems to have worked, is that what you were pointing me to?
Yeah. It needs to be aboe
/create
because otherwise it will look for a record with the ID "create"