Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Feature/handle proxy #756

Merged
merged 9 commits into from
Sep 25, 2015
Merged

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Sep 24, 2015

Miscellaneous changes to allow the data site to work behind a proxy. This is necessary to mount the data site at a sub-path of beta.fec.gov, such as beta.fec.gov/data.

  • Respect X-Script-Name header
  • Use url_for for all URLs built on the server
  • Use buildAppUrl for all URLs build on the client

return tables.buildEntityLink(data, '/committee/' + row.committee_id + tables.buildCycle(row), 'committee');
return tables.buildEntityLink(
data,
helpers.buildAppUrl(['committee', row.committee_id], tables.getCycle(row)),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.
Identifier 'committee_id' is not in camel case.

return tables.buildEntityLink(data.name, '/committee/' + data.committee_id, 'committee');
return tables.buildEntityLink(
data.name,
helpers.buildAppUrl(['committee', data.committee_id]),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier 'committee_id' is not in camel case.

return tables.buildEntityLink(data.name, '/committee/' + data.committee_id, 'committee');
return tables.buildEntityLink(
data.name,
helpers.buildAppUrl(['committee', data.committee_id]),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier 'committee_id' is not in camel case.

return tables.buildEntityLink(data.name, '/committee/' + data.committee_id, 'committee');
return tables.buildEntityLink(
data.name,
helpers.buildAppUrl(['committee', data.committee_id]),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier 'committee_id' is not in camel case.

noahmanger pushed a commit that referenced this pull request Sep 25, 2015
@noahmanger noahmanger merged commit 13c2aa3 into fecgov:develop Sep 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants