Skip to content

Commit

Permalink
BUGFIX: Adjust route to workspace module
Browse files Browse the repository at this point in the history
While extracting the workspace module into a separate package, the route was adjusted to `neos/management/workspace`.

Relates: neos/neos-development-collection#5118
  • Loading branch information
ahaeslich committed Jun 28, 2024
1 parent 56ec023 commit a74d2cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/Infrastructure/MVC/RoutesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ public function getRoutes(UriBuilder $uriBuilder): array
];

$routes['core']['modules'] = [
'workspaces' =>
'workspace' =>
$helper->buildCoreRoute(
controllerName: 'Backend\\Module',
actionName: 'index',
arguments: [
'module' => 'management/workspaces'
'module' => 'management/workspace'
]
),
'userSettings' =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class PublishDropDown extends PureComponent {
neos
} = this.props;

const workspaceModuleUri = neos?.routes?.core?.modules?.workspaces;
const workspaceModuleUri = neos?.routes?.core?.modules?.workspace;
const allowedWorkspaces = neos?.configuration?.allowedTargetWorkspaces;
const baseWorkspaceTitle = allowedWorkspaces?.[baseWorkspace]?.title;
const canPublishLocally = !isSaving && !isPublishing && !isDiscarding && publishableNodesInDocument && (publishableNodesInDocument.length > 0);
Expand Down

0 comments on commit a74d2cd

Please sign in to comment.