JS callback interferes for areas that redirect #49

Closed
dracos opened this Issue Dec 15, 2012 · 0 comments

Projects

None yet

2 participants

Owner
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.
473387d
@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