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:

'view' => ViewActivity::route('/{record}/view')


Just wanted to check, is this the best approach or is there a better way?
Was this page helpful?