JS callback interferes for areas that redirect #49

dracos opened this Issue Dec 15, 2012 · 0 comments


None yet

2 participants

dracos commented Dec 15, 2012

http://mapit.mysociety.org/area/E06000001 redirects fine, but http://mapit.mysociety.org/area/E06000001?callback=myCallback returns an empty callback rather than redirecting (presumably as it intercepts the redirect badly).

@mhl mhl added a commit that referenced this issue Dec 16, 2012
@mhl mhl Allow use of JSONP when redirecting from a code
This fixes issue #49.  There are two changes introduced in
this commit:

 - In the customized area lookup for country 'gb', pass on
   the query string if returning a redirect response.

 - In the JSONPMiddleware, only deal with the callback
   parameter if the response isn't a 302 redirect.
@mhl mhl closed this Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment