Skip to content

Commit

Permalink
fix: header button navigation to home application (wz-home) (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desvelao authored Oct 25, 2023
1 parent bf159b3 commit 42bea02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stack/dashboard/base/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ sed -i "90s|defaultValue: true|defaultValue: false|g" ./src/core/server/opensear
# Add fix to Node variables as Node is not using the NODE_OPTIONS environment variables
sed -i 's/NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS"/NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS"\n/g' ./bin/use_node
sed -i 's/exec "${NODE}"/NODE_ENV=production exec "${NODE}" ${NODE_OPTIONS} /g' ./bin/use_node
# Replace the redirections to home app
app_home='wz-home'
# Replace the redirection to `home` in the header logo
sed -i "s'/app/home'/app/wz-home'g" ./src/core/target/public/core.entry.js
sed -i "s'/app/home'/app/${app_home}'g" ./src/core/target/public/core.entry.js
# Replace others redirections to `home`
sed -i 's/navigateToApp("home")/navigateToApp("wazuh")/g' ./src/core/target/public/core.entry.js
sed -i "s/navigateToApp(\"home\")/navigateToApp(\"${app_home}\")/g" ./src/core/target/public/core.entry.js
# Changed from Opensearch Documentation links to Wazuh Documentation
# Help menu
## Help header - Version
Expand Down

0 comments on commit 42bea02

Please sign in to comment.