{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1581","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1581/comments","events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1581/events","html_url":"https://github.com/jenkinsci/jenkins/pull/1581","id":58580851,"number":1581,"title":"[FIXED JENKINS-24433] Searchbox doesn't work properly inside a folder","user":{"login":"fbelzunc","id":3898648,"avatar_url":"https://avatars.githubusercontent.com/u/3898648?v=3","gravatar_id":"","url":"https://api.github.com/users/fbelzunc","html_url":"https://github.com/fbelzunc","followers_url":"https://api.github.com/users/fbelzunc/followers","following_url":"https://api.github.com/users/fbelzunc/following{/other_user}","gists_url":"https://api.github.com/users/fbelzunc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbelzunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbelzunc/subscriptions","organizations_url":"https://api.github.com/users/fbelzunc/orgs","repos_url":"https://api.github.com/users/fbelzunc/repos","events_url":"https://api.github.com/users/fbelzunc/events{/privacy}","received_events_url":"https://api.github.com/users/fbelzunc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-23T12:41:55Z","updated_at":"2015-04-10T22:00:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1581","html_url":"https://github.com/jenkinsci/jenkins/pull/1581","diff_url":"https://github.com/jenkinsci/jenkins/pull/1581.diff","patch_url":"https://github.com/jenkinsci/jenkins/pull/1581.patch"},"body":"[JENKINS-24433](https://issues.jenkins-ci.org/browse/JENKINS-24433)\r\n\r\nThe change in `Search.java` fixes the problem currently there is when you are in a folder, look for job which is behind the folder and try to access to the URL. You should not use `a.getUrl()`, but the current context of the request `req.getContextPath()`.\r\n\r\nChange in `SuggestedItem.java` allows you to provide the global context of each item in the tree for the search box. Otherwise, if you are in folder and look for an element behind the folder, then the search box says that this element is in the current context. Better is to provide always global context of all elements.\r\n\r\n@reviewbybees"},"comment":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments/91704204","html_url":"https://github.com/jenkinsci/jenkins/pull/1581#issuecomment-91704204","issue_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1581","id":91704204,"user":{"login":"recampbell","id":70199,"avatar_url":"https://avatars.githubusercontent.com/u/70199?v=3","gravatar_id":"","url":"https://api.github.com/users/recampbell","html_url":"https://github.com/recampbell","followers_url":"https://api.github.com/users/recampbell/followers","following_url":"https://api.github.com/users/recampbell/following{/other_user}","gists_url":"https://api.github.com/users/recampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/recampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recampbell/subscriptions","organizations_url":"https://api.github.com/users/recampbell/orgs","repos_url":"https://api.github.com/users/recampbell/repos","events_url":"https://api.github.com/users/recampbell/events{/privacy}","received_events_url":"https://api.github.com/users/recampbell/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T22:00:40Z","updated_at":"2015-04-10T22:00:40Z","body":"@reviewbybees, can someone please merge this?"}}