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