Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

redirect not cleaning hash state #3287

@pehrlich

Description

@pehrlich

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions