mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 05:33:49 +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}`);
|
|
}
|
|
});
|