Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Neos redirection issue in subfolder configuration #3713

Merged
merged 5 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Resources/Private/Fusion/Backend/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ backend = Neos.Fusion:Template {
module = 'media/browser'
}
}
defaultModule = Neos.Fusion:UriBuilder {
package = 'Neos.Neos'
controller = 'Backend\\Backend'
action = 'index'
absolute = true
}
}
login = Neos.Fusion:UriBuilder {
controller = 'Login'
Expand Down
1 change: 1 addition & 0 deletions packages/neos-ui-backend-connector/src/Endpoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface Routes {
workspaces: string;
userSettings: string;
mediaBrowser: string;
defaultModule: string;
};
login: string;
logout: string;
Expand Down
1 change: 1 addition & 0 deletions packages/neos-ui-backend-connector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const initializeJsAPI = (parent: {[propName: string]: any}, {alias = 'neo
addLibrary('use', initializeUse(addLibrary, neos));
addLibrary('q', initializeFlowQuery(routes));
addLibrary('endpoints', initializeEndpoints(routes));
addLibrary('routes', routes);
markusguenther marked this conversation as resolved.
Show resolved Hide resolved

//
// Attach Neos API to the parent object
Expand Down
3 changes: 2 additions & 1 deletion packages/neos-ui-sagas/src/UI/Impersonate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export function * impersonateRestore({globalRegistry}) {
} else {
yield put(actions.UI.FlashMessages.add('restoreUserImpersonateUser', errorMessage, 'error'));
}
window.location.pathname = '/neos';

window.location.href = $get('core.modules.defaultModule', window.neos.routes);
} catch (error) {
yield put(actions.UI.FlashMessages.add('restoreUserImpersonateUser', errorMessage, 'error'));
}
Expand Down
Loading