{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/180","repository_url":"https://api.github.com/repos/pouchdb/pouchdb-server","labels_url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/180/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/180/events","html_url":"https://github.com/pouchdb/pouchdb-server/issues/180","id":208657323,"node_id":"MDU6SXNzdWUyMDg2NTczMjM=","number":180,"title":"fauxton does not work when attached as express-middeware (app.use('/db',require('express-pouchdb')(...))) due to build on \"initialize.js.underscore\",app.host variable,etc","user":{"login":"nolanlawson","id":283842,"node_id":"MDQ6VXNlcjI4Mzg0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/283842?v=4","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"labels":[{"id":26977402,"node_id":"MDU6TGFiZWwyNjk3NzQwMg==","url":"https://api.github.com/repos/pouchdb/pouchdb-server/labels/bug","name":"bug","color":"fc2929","default":true},{"id":542639224,"node_id":"MDU6TGFiZWw1NDI2MzkyMjQ=","url":"https://api.github.com/repos/pouchdb/pouchdb-server/labels/difficulty:%20hard","name":"difficulty: hard","color":"b60205","default":false},{"id":542628238,"node_id":"MDU6TGFiZWw1NDI2MjgyMzg=","url":"https://api.github.com/repos/pouchdb/pouchdb-server/labels/has%20test%20case","name":"has test case","color":"bfd4f2","default":false},{"id":542549526,"node_id":"MDU6TGFiZWw1NDI1NDk1MjY=","url":"https://api.github.com/repos/pouchdb/pouchdb-server/labels/help%20wanted","name":"help wanted","color":"ededed","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-02-18T17:45:37Z","updated_at":"2018-07-05T09:45:01Z","closed_at":null,"author_association":"MEMBER","body":"_From @thesli on October 28, 2014 15:46_\n\nThe host is no longer correct when you attach as middleware.\nIn the case app.use('/db',...), a.host's value should be '/db/'\n\nIn require.js(build from apache/couchdb-fauxton:app/initialize.js.underscore)\n\n``` javascript\ndefine(\"initialize\", [], function() {\n        var a = {\n            root: \"/_utils/fauxton/\",\n            version: \"1.0\",\n            host: \"../..\"\n        };\n        return a\n    })\n```\n\nThe core/couchdbSession have the same issue of using \"/_session\" without refering correct location.\n\n``` javascript\ndefine(\"core/couchdbSession\", [\"core/base\"], function(a) {\n        var b = {\n            Session: a.Model.extend({\n                url: \"/_session\",\n                user: function() {...\n\n```\n\nAlso the clipboard part\n\n``` javascript\nf.Clipboard = b.View.extend({\n            initialize: function(c) {\n                this.$el = c.$el, this.moviePath = b.getExtensions(\"zeroclipboard:movielist\")[0], _.isUndefined(this.moviePath) && (this.moviePath = a.host + a.root + \"js/zeroclipboard/ZeroClipboard.swf\") ...\n```\n\nThe setting should be:\n\n```\nurl: \"/_session\" -> url: \"./_session\"\n```\n\n```\nhost: \"../..\" -> host: \"./\"\n```\n\n```\nthis.moviePath = a.host + a.root + \"js/zeroclipboard/ZeroClipboard.swf\" \n-> \nthis.moviePath = a.host + \"js/zeroclipboard/ZeroClipboard.swf\"\n```\n\nPlease kindly rebuild the asset and serve the correct path.\n\n\n_Copied from original issue: pouchdb/express-pouchdb#124_"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/comments/402667508","html_url":"https://github.com/pouchdb/pouchdb-server/issues/180#issuecomment-402667508","issue_url":"https://api.github.com/repos/pouchdb/pouchdb-server/issues/180","id":402667508,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjY2NzUwOA==","user":{"login":"garrensmith","id":179458,"node_id":"MDQ6VXNlcjE3OTQ1OA==","avatar_url":"https://avatars2.githubusercontent.com/u/179458?v=4","gravatar_id":"","url":"https://api.github.com/users/garrensmith","html_url":"https://github.com/garrensmith","followers_url":"https://api.github.com/users/garrensmith/followers","following_url":"https://api.github.com/users/garrensmith/following{/other_user}","gists_url":"https://api.github.com/users/garrensmith/gists{/gist_id}","starred_url":"https://api.github.com/users/garrensmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrensmith/subscriptions","organizations_url":"https://api.github.com/users/garrensmith/orgs","repos_url":"https://api.github.com/users/garrensmith/repos","events_url":"https://api.github.com/users/garrensmith/events{/privacy}","received_events_url":"https://api.github.com/users/garrensmith/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T09:45:01Z","updated_at":"2018-07-05T09:45:01Z","author_association":"MEMBER","body":"This commit in Fauxton https://github.com/apache/couchdb-fauxton/commit/8a3e520e17e2e79ee6015861f2592fadcb944558 should fix this. It would just require building the latest version of Fauxton for express-pouch"}}
{"actor":{"display_login":"garrensmith"}}