mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 10:36:32 +08:00
9 lines
207 B
JavaScript
9 lines
207 B
JavaScript
export default Discourse.Route.extend({
|
|
redirect() {
|
|
let segment = this.siteSettings.flags_default_topics
|
|
? "topics"
|
|
: "postsActive";
|
|
this.replaceWith(`adminFlags.${segment}`);
|
|
}
|
|
});
|