0E800
Replacing IndexPage would then not work for when the Home Page is set to 'All Discussions'.
You shouldn't have to update the server config to change the landing page url to tags.
The best thing to do is override the global view, independent of what the 'Home Page' setting is set as.
---
If you look at flarum/core/js/forum/src/initializers/routes.js
you can see the different page components for each route. Each one of them extends the Page
component, so we need to override /flarum/core/js/forum/src/components/Page.js
somehow, and move the code from NewIndexPage.js
into the view()
of the new Page component.
Edit: I think I might be onto something, but its a bit messy having to extend each new Page Component (DiscussionPage.Component(), TagsPage.Component() etc). Need to be able to extend their parent Page component instead of each individual one.