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

Replace Wazuh dashboard header address from home to wazuh #1264

Closed
c-bordon opened this issue Feb 18, 2022 · 1 comment
Closed

Replace Wazuh dashboard header address from home to wazuh #1264

c-bordon opened this issue Feb 18, 2022 · 1 comment
Assignees

Comments

@c-bordon
Copy link
Member

To replace the redirection of the Wazuh dashboard header button from the home app to the wazuh app, you could use the following:
In the Wazuh dashboard menu, there is a button that says Home, that would also be being modified so that it does not redirect to the home app but to wazuh:

# Replace the redirection to `home` in the header logo
sed -i "s'/app/home'/app/wazuh'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
# Build the compressed files
gzip -c src/core/target/public/core.entry.js > src/core/target/public/core.entry.js.gz
brotli -c src/core/target/public/core.entry.js > src/core/target/public/core.entry.js.br
@c-bordon
Copy link
Member Author

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants