Github user robertkowalski commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/338#discussion_r27260831
--- Diff: app/addons/documents/shared-resources.js ---
@@ -27,7 +27,7 @@ define([
return FauxtonAPI.constants.DOC_URLS.GENERAL;
},
url: function (context) {
- if (context === undefined) {
+ if (!context) {
--- End diff --
some background info, sorry for the short answer:
the implementation is meant to take care of calls without a parameter:
`.url()` - if that is the case it will choose to return the url for `server`.
this is also true for `.url(undefined)` - I am not sure if the user wants
the url for the server if passing `undefined`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---