This is related to
JENKINS-54839. When calling from inside a view in the ui, the view is still part of the url, which fails the "Match text" with an AssertionError.
Basically, we could simply extend the replace all string from https://github.com/jenkinsci/build-failure-analyzer-plugin/pull/93/commits/a80fcd073ec50faecf2e088ffd6ad45395fb6d4e, but this would not handle cornercases like a job named view well, so the replacement should be improved a little bit.
A will create a PR for that.