REFACTOR: Remove `Discourse.SiteSettings` from static route builder
This commit is contained in:
parent
0bf28e418f
commit
94419d0176
|
@ -17,9 +17,9 @@ export default function(page) {
|
|||
|
||||
beforeModel(transition) {
|
||||
const configKey = configs[page];
|
||||
if (configKey && Discourse.SiteSettings[configKey].length > 0) {
|
||||
if (configKey && this.siteSettings[configKey].length > 0) {
|
||||
transition.abort();
|
||||
DiscourseURL.redirectTo(Discourse.SiteSettings[configKey]);
|
||||
DiscourseURL.redirectTo(this.siteSettings[configKey]);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue