Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
fix for anon
Dieser Commit ist enthalten in:
Ursprung
ccb7095b00
Commit
0cec743253
1 geänderte Dateien mit 14 neuen und 12 gelöschten Zeilen
|
@ -24,6 +24,7 @@ export default {
|
||||||
api.onAppEvent("page:changed", (data) => {
|
api.onAppEvent("page:changed", (data) => {
|
||||||
const currentUser = container.lookup("service:current-user");
|
const currentUser = container.lookup("service:current-user");
|
||||||
const settings = container.lookup("service:site-settings");
|
const settings = container.lookup("service:site-settings");
|
||||||
|
if (currentUser) {
|
||||||
const redirectToWizard = currentUser.redirect_to_wizard;
|
const redirectToWizard = currentUser.redirect_to_wizard;
|
||||||
const excludedPaths = settings.wizard_redirect_exclude_paths
|
const excludedPaths = settings.wizard_redirect_exclude_paths
|
||||||
.split("|")
|
.split("|")
|
||||||
|
@ -37,6 +38,7 @@ export default {
|
||||||
) {
|
) {
|
||||||
window.location = "/w/" + redirectToWizard.dasherize();
|
window.location = "/w/" + redirectToWizard.dasherize();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
api.modifyClass("component:d-navigation", {
|
api.modifyClass("component:d-navigation", {
|
||||||
|
|
Laden …
In neuem Issue referenzieren