mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:53:43 +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}`);
|
|
}
|
|
});
|