{"action":"created","issue":{"url":"https://api.github.com/repos/concerto/concerto/issues/1222","labels_url":"https://api.github.com/repos/concerto/concerto/issues/1222/labels{/name}","comments_url":"https://api.github.com/repos/concerto/concerto/issues/1222/comments","events_url":"https://api.github.com/repos/concerto/concerto/issues/1222/events","html_url":"https://github.com/concerto/concerto/issues/1222","id":89591485,"number":1222,"title":"Screen preview js 404 on frontend fields contents","user":{"login":"inghamn","id":630282,"avatar_url":"https://avatars.githubusercontent.com/u/630282?v=3","gravatar_id":"","url":"https://api.github.com/users/inghamn","html_url":"https://github.com/inghamn","followers_url":"https://api.github.com/users/inghamn/followers","following_url":"https://api.github.com/users/inghamn/following{/other_user}","gists_url":"https://api.github.com/users/inghamn/gists{/gist_id}","starred_url":"https://api.github.com/users/inghamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inghamn/subscriptions","organizations_url":"https://api.github.com/users/inghamn/orgs","repos_url":"https://api.github.com/users/inghamn/repos","events_url":"https://api.github.com/users/inghamn/events{/privacy}","received_events_url":"https://api.github.com/users/inghamn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T15:25:20Z","updated_at":"2015-08-21T20:08:39Z","closed_at":"2015-08-21T20:08:39Z","body":"We're using version 2.2.7\r\n\r\nThe javascript for requesting  /frontend/1/fields/1/contents/1 on a screen display is prepending an extra path prefix.\r\n\r\nWe have concert installed at http://host/concerto\r\nMost everything works as expected, however, images in feed content are not displaying.  The browser is 404ing on the request.  The request for the feed images has an additional prefix added to it.\r\n\r\nSo the request is being made for \r\nhttp://host/concerto/concerto/frontend/3/fields/1/contents/16\r\ninstead of \r\nhttp://host/concerto/frontend/3/fields/1/contents/16\r\n\r\nThe images do, in fact load at\r\nhttp://host/concerto/frontend/3/fields/1/contents/16\r\n"},"comment":{"url":"https://api.github.com/repos/concerto/concerto/issues/comments/133547244","html_url":"https://github.com/concerto/concerto/issues/1222#issuecomment-133547244","issue_url":"https://api.github.com/repos/concerto/concerto/issues/1222","id":133547244,"user":{"login":"augustf","id":12512,"avatar_url":"https://avatars.githubusercontent.com/u/12512?v=3","gravatar_id":"","url":"https://api.github.com/users/augustf","html_url":"https://github.com/augustf","followers_url":"https://api.github.com/users/augustf/followers","following_url":"https://api.github.com/users/augustf/following{/other_user}","gists_url":"https://api.github.com/users/augustf/gists{/gist_id}","starred_url":"https://api.github.com/users/augustf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustf/subscriptions","organizations_url":"https://api.github.com/users/augustf/orgs","repos_url":"https://api.github.com/users/augustf/repos","events_url":"https://api.github.com/users/augustf/events{/privacy}","received_events_url":"https://api.github.com/users/augustf/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T20:08:39Z","updated_at":"2015-08-21T20:08:39Z","body":"It would appear to met that your sub-URI configuration is wrong. Rails can be a bit odd about that sort of arrangement as it expects to have a hostname to itself. It may be that you have both Rails and your webserver adding the sub-URI. While I'm not sure what toolchain you're using, I would recommend looking at some suggestions from the folks who make Passenger on the topic: https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-sub-uri\r\n\r\nIncidentally, we'll be releasing Concerto 2.3 imminently and won't be taking tickets for 2.2.x frontend issues after that."}}