If a branch has escapable character other than '/', for example '#', does not get encoded and this results in to calling nodes, steps or step's log API results in 404. Resulting in to blank run details page.
For example, UI computes this URL for branch name feature/test#1: http://localhost:8080/jenkins/blue/rest/organizations/jenkins/pipelines/capability-annotation/branches/feature%252Ftest%231/runs/1/nodes/. Here '/' is correctly double encoded %252F but '#' is not so it is: %231.
Correct encoding of branch name: feature/test#1 should have been: feature%252Ftest%25231.