Skip to content

@Seldaek /Of redirects
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Of redirects
// format: html, POST /register, dev calls setRedirectRoute('welcome')
302 => /welcome, browser redirects, gets a new page
// format: json, POST /register, dev calls setRedirectRoute('welcome')
302 => /welcome, browser redirects, /welcome returns a 200 with {"some json shit"}, ajax callback gets json
// format: html, GET|POST /anypage, dev calls setRedirectUri('http://google.com/FUUUUU')
302 => http://google.com/FUUUUU
// format: json, GET|POST /anypage, dev calls setRedirectUri('http://google.com/FUUUUU')
302 => http://google.com/FUUUUU + Response body is: {"status":"302","location":"http://google.com/FUUUUU"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.