I'm returning from Facebook authentication. There's a get request that looks like this:
Request URL:http://localhost:3000/users/auth/facebook/callback?code=<snip>#_=_
Rails then redirects, the header becomes:
Location:http://localhost:3000/account
However, the page that loads is:
http://localhost:3000/account#_=_
This is a big problem, because only a blank page is displayed
I tried setting data-url='/account' on page div, but nothing changed.
Is this my mistake somewhere?
Thanks
UPDATE: here's my hack workaround
$(document).bind 'pagebeforechange', (e, data) ->
if (data.toPage.split) && (split = data.toPage.split('#')) && (split[1] == '_=_')
data.toPage = split[0]
# hack fixing https://github.com/jquery/jquery-mobile/issues/3287