alphagov/frontend — pull request #153 by JordanHatch (2012-11-09 11:14:56+00:00)
Title: Send snac on authority API redirects

Due to the way we currently handle API redirects in Frontend for JSON format requests, visiting /pay-council-tax/westminster.json will redirect to the wrong API endpoint.

This will add the 'snac' parameter for authority API redirects.

We should probably make an endpoint in the future at /api/pay-council-tax/westminster.json, however given the current way we handle local transactions in Frontend (to match the most appropriate authority), I think this would create some duplication between the content api and Frontend for matching the authority slugs.