{"action":"created","issue":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/944","repository_url":"https://api.github.com/repos/apache/couchdb-fauxton","labels_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/944/comments","events_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/944/events","html_url":"https://github.com/apache/couchdb-fauxton/issues/944","id":246531487,"number":944,"title":"Fauxton only works went mounted to url \"/\",.","user":{"login":"KpjComp","id":7437955,"avatar_url":"https://avatars2.githubusercontent.com/u/7437955?v=4","gravatar_id":"","url":"https://api.github.com/users/KpjComp","html_url":"https://github.com/KpjComp","followers_url":"https://api.github.com/users/KpjComp/followers","following_url":"https://api.github.com/users/KpjComp/following{/other_user}","gists_url":"https://api.github.com/users/KpjComp/gists{/gist_id}","starred_url":"https://api.github.com/users/KpjComp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KpjComp/subscriptions","organizations_url":"https://api.github.com/users/KpjComp/orgs","repos_url":"https://api.github.com/users/KpjComp/repos","events_url":"https://api.github.com/users/KpjComp/events{/privacy}","received_events_url":"https://api.github.com/users/KpjComp/received_events","type":"User","site_admin":false},"labels":[{"id":75491805,"url":"https://api.github.com/repos/apache/couchdb-fauxton/labels/enhancement","name":"enhancement","color":"fbca04","default":true},{"id":622268770,"url":"https://api.github.com/repos/apache/couchdb-fauxton/labels/help%20wanted","name":"help wanted","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-29T16:38:55Z","updated_at":"2018-04-29T18:44:32Z","closed_at":null,"author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n\r\nI'm using Fauxton with Express, and when mounted say at url  \"/db\"..  everything fails..\r\n\r\n## Expected Behavior\r\nWhen mounted at say '/db',  request should be  '/db/_session',..\r\n\r\n## Current Behavior\r\nInstead of say requests like -> '/db/_session',  the console is showing requests like -> '/_session'\r\n\r\n## Possible Solution\r\nMake the fauxton route path configurable.  \r\n\r\ncode like -> \r\n```\r\n    return window.location.origin + '/' + app.utils.safeURLName(database);\r\n```\r\nThis is assuming we have everything running at '/'..\r\n\r\n## Steps to Reproduce (for bugs)\r\nRun Fauxton from a route like \"/db\"\r\n\r\n## Context\r\nI'm trying to make an express app, that can host website, and fauxton etc.  Assuming everything is @  \"/\" is not ideal.  So a request say for session would be  '/db/_session' \r\n\r\n## Your Environment\r\nNode\r\nWindows"},"comment":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/comments/385272247","html_url":"https://github.com/apache/couchdb-fauxton/issues/944#issuecomment-385272247","issue_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/944","id":385272247,"user":{"login":"wohali","id":112292,"avatar_url":"https://avatars2.githubusercontent.com/u/112292?v=4","gravatar_id":"","url":"https://api.github.com/users/wohali","html_url":"https://github.com/wohali","followers_url":"https://api.github.com/users/wohali/followers","following_url":"https://api.github.com/users/wohali/following{/other_user}","gists_url":"https://api.github.com/users/wohali/gists{/gist_id}","starred_url":"https://api.github.com/users/wohali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wohali/subscriptions","organizations_url":"https://api.github.com/users/wohali/orgs","repos_url":"https://api.github.com/users/wohali/repos","events_url":"https://api.github.com/users/wohali/events{/privacy}","received_events_url":"https://api.github.com/users/wohali/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T18:44:32Z","updated_at":"2018-04-29T18:44:32Z","author_association":"MEMBER","body":"It would be great if Fauxton can determine where it's hosted automatically. Imagine hosting CouchDB behind a reverse proxy that places all URLs under `/db/` or something. You won't be able to edit `settings.json` in this situation as CouchDB might be deployed from packages or in a docker container."}}
{"actor":{"display_login":"wohali"}}