mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Simple forum software for building great communities.
6a0ea3a5a3
The current implementation for checking whether we are on a discussion page, and going to a discussion page, checks the route we are going to. This is problematic, because the route resolver represents the route being considered, not the route we are currently on. So, if we are currently using a DiscussionPageResolver, we must be going to a route handled by DiscussionPage. Instead, we need to check the route that we are currently on, which is done via `app.current.matches(DiscussionPage)`. |
||
---|---|---|
framework/core |