Skip to content

Space in link composition #2

Description

@adriangalbincea

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions