silverstripe / silverstripe-cms

Silverstripe CMS - this is a module for Silverstripe Framework rather than a standalone app. Use https://github.com/silverstripe/silverstripe-installer/ to set this up.
http://silverstripe.org/
BSD 3-Clause "New" or "Revised" License
514 stars 333 forks source link

Refactor `RootURLController` to be generic #2954

Open GuySartorelli opened 5 months ago

GuySartorelli commented 5 months ago

RootURLController is currently hardcoded to work with SiteTree. It's not inconceivable that someone might want to route to a DataObject that isn't managed in the site tree as the "home" route.

Making this class more generic removes some friction from that use case.

Acceptance Criteria

TO DECIDE

Arguably this doesn't open much opportunity if we don't move some stuff around as well - but what should we move, and to where?