Is it possible to disable the resource index page?
I am working on a novel reading app where a novel can have many series and a series can have many chapters. I've structured my app in the following way.
- The
NovelResourcehas a relation manager withSerieswhere I've only added a custom view action which redirects the user tofilament.admin.resources.series.viewroute when clicked and passes the model ID as route parameter. - I've created a
SeriesResourcewith onlyviewandeditpage and removed thecreateandindexentries from thegetPagesfunction inSeriesResource. I've also hidden the resource from navigation by setting$shouldRegisterNavigationto
on thefalseSeriesResource - When user is redirected to the series view page (
filament.admin.resources.series.view) it throws an error saying the routefilament.admin.resources.series.indexis not defined. I do not want this page to be created or accessible by anyone because user will list theSeriesviaNovelResource'sSeriesRelationManagerand cannot directly access the main page. - How can I completely disable the
indexroute forSeriesResource? I know it uses theindexpage link in breadcrumb and the Cancel button but I want to change it to the parent novel page.