Fix client redirect
Dieser Commit ist enthalten in:
Ursprung
2981c32ea5
Commit
cb9e37cf30
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
|
@ -20,7 +20,9 @@ export default {
|
|||
const redirectToWizard = this.get('currentUser.redirect_to_wizard');
|
||||
const excludedPaths = Discourse.SiteSettings.wizard_redirect_exclude_paths.split('|').concat(['loading']);
|
||||
|
||||
if (redirectToWizard && excludedPaths.indexOf(this.routeName) === -1) {
|
||||
if (redirectToWizard && (!transition.intent.name || !excludedPaths.find((p) => {
|
||||
return transition.intent.name.indexOf(p) > -1;
|
||||
}))) {
|
||||
transition.abort();
|
||||
window.location = '/w/' + redirectToWizard.dasherize();
|
||||
}
|
||||
|
|
Laden …
In neuem Issue referenzieren