I'm working on a lightning communities implementation where we want to drill down from the Case object to a list of related objects. The related object list is pretty heavily customized, so we aren't using any out of the box functionality.
The spec is that the user should be able to navigate using the back button on the related object list page and go back to the case detail.
Since we are using the Case detail page to get the recordId parameter, what I initially tried was creating a custom page and including the parameter of the parent recordId in the url (e.g. /s/case-lines?recordId=12345679). Navigating here via force:navigateToUrl takes me to the page, but the init function doesn't succeed because there is no ID.
If I reload the page, however, the parameter is picked up and the components work as expected. That isn't the best user experience, though.
What would be a better approach to this kind of use case, where we want to drill down into a record's child objects and load a new page?