Skip to content

Commit

Permalink
Feature: Add frontend Shortcut setting in config
Browse files Browse the repository at this point in the history
  • Loading branch information
pKallert committed Dec 27, 2023
1 parent 2f8140d commit 2d878e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Controller/Frontend/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ protected function handleShortcutNode(NodeAddress $nodeAddress, ContentRepositor
} else {
$resolvedUri = $resolvedTarget;
}

$this->redirectToUri($resolvedUri, statusCode: $this->shortcutRedirectHttpStatusCode);
}

Expand Down
4 changes: 4 additions & 0 deletions Neos.Neos/Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ Neos:
label: 'Neos.Neos:Main:nodeTypes.groups.plugins'
collapsed: true

frontend:
# HTTP Status Code used for redirecting Neos.Neos:Shortcut to target
shortcutRedirectHttpStatusCode: 303

userInterface:

# Switch on to see all translated labels getting scrambled. You now can localize
Expand Down

0 comments on commit 2d878e0

Please sign in to comment.