Skip to content

DEV: use modifyClass for homepage behavior instead of setDefaultHomepage#46

Open
awesomerobot wants to merge 2 commits intomainfrom
dev-homepage-routing-fix
Open

DEV: use modifyClass for homepage behavior instead of setDefaultHomepage#46
awesomerobot wants to merge 2 commits intomainfrom
dev-homepage-routing-fix

Conversation

@awesomerobot
Copy link
Copy Markdown
Member

@awesomerobot awesomerobot commented Apr 3, 2026

We had to revert a core commit, discourse/discourse@a53910e, because it added a call to discovery.${defaultHomepage()} — which in the case of this theme caused discourse-ai/ai-bot/conversations to become discovery.discourse-ai/ai-bot/conversations

The solution used here in the theme was kind of a hack anyway, so moving to modifyClass overrides the method and avoids this issue, as well as a previous issue with a circular reference. Ideally at some point we can update core to allow for arbitrary routes as the homepage and remove this override.

So after merging this, we can go back and re-apply that core change.

I also hid the "back to forum" button in the CSS, which is irrelevant here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants