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

Space in link composition #2

Open
adriangalbincea opened this issue Sep 13, 2023 · 0 comments
Open

Space in link composition #2

adriangalbincea opened this issue Sep 13, 2023 · 0 comments

Comments

@adriangalbincea
Copy link

Hi, I had to adjust the script so it will replace the Space with %20 in the link composition.

I had to do mine like this:
ICINGAURL="https://icingahost/dashboard#!/monitoring/service/show?host=$HOSTNAME&service=$SERVICENAME"
ICINGAWEBURL=echo "$ICINGAURL" | sed 's/ /%20/g'

If you have a better approach you can update the script. I am not an expert and I did what was the easiest for me.

Also, I used show instead of history because I wanted to display something else to the user once clicked the link.

Overall you did a great job!

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

No branches or pull requests

1 participant