FEATURE: implement way to temporarily ignore redirect
Dieser Commit ist enthalten in:
Ursprung
fee56c2d43
Commit
8332818616
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
|
@ -22,6 +22,7 @@ export default {
|
||||||
withPluginApi("0.8.36", (api) => {
|
withPluginApi("0.8.36", (api) => {
|
||||||
api.onAppEvent("page:changed", (data) => {
|
api.onAppEvent("page:changed", (data) => {
|
||||||
const currentUser = api.getCurrentUser();
|
const currentUser = api.getCurrentUser();
|
||||||
|
const searchParams = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
const redirectToWizard = currentUser.redirect_to_wizard;
|
const redirectToWizard = currentUser.redirect_to_wizard;
|
||||||
|
@ -30,6 +31,7 @@ export default {
|
||||||
.concat(["loading"]);
|
.concat(["loading"]);
|
||||||
if (
|
if (
|
||||||
redirectToWizard &&
|
redirectToWizard &&
|
||||||
|
!searchParams.has('ignore_redirect') &&
|
||||||
data.currentRouteName !== "customWizardStep" &&
|
data.currentRouteName !== "customWizardStep" &&
|
||||||
!excludedPaths.find((p) => {
|
!excludedPaths.find((p) => {
|
||||||
return data.currentRouteName.indexOf(p) > -1;
|
return data.currentRouteName.indexOf(p) > -1;
|
||||||
|
|
Laden …
In neuem Issue referenzieren