shannonturner / shut-that-down

Offensive quotes by politicians and the corporations who fund them
https://shutthatdown.com
13 stars 4 forks source link

External link to Sunlight fails when Donor Org has & in their name #1

Closed shannonturner closed 10 years ago

shannonturner commented 11 years ago

For example, on http://shutthatdown.com/quote?quote_id=95

In the Donors table, there is an external link to the Sunlight Foundation's Influence Explorer for AT&T: http://influenceexplorer.com/organization/at&t-inc/d473e580c5684a658b754eb97566cb05?cycle=2012

Going to that link resolves to: http://influenceexplorer.com/search?query=%(query_string)s?cycle=2012

Which is, of course, invalid.

Rather than replacing the & with %26, it appears as though Sunlight simply omits the ampersand as demonstrated in the correct URL below:

http://influenceexplorer.com/organization/att-inc/d473e580c5684a658b754eb97566cb05

Removing the ampersand from external Influence Explorer URLs would resolve this issue.