mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 04:18:41 +08:00

Previously, if a non-admin controller did not have a template defined, then the resolver would return an admin template with the same name. This is not the desired behavior, and regressed in fc36ac6cde2afaf8c5e9e6df22e71a7b3044c0a2. However, we *do* want this behavior for components defined in the admin bundle (because admin components are not namespaced). This was noticed because the non-admin `badges` route was using the `admin/badges` template This commit fixes the behavior, and adds a tests for these cases.