facebook - Blank Redirect Page with JQuery Mobile (and ASP.NET MVC3) -
facebook - Blank Redirect Page with JQuery Mobile (and ASP.NET MVC3) -
i'm getting unusual issue chrome + firefox. doesn't repro on ios or ie9.
here's repro:
load home pagehttp://example.com login (via rel="external" hyperlink). in case utilize facebook's oauth server side flow - url facebook.com. facebook accepts user's credentials , redirects http://example.com/user/callback. here various facebook info processed (it provided in query string). the server side code @ http://example.com/user/callback redirects user http://example.com. mechanism used redirect redirecttoaction asp.net mvc3. returns 302. expected result: user see url in browser = http://example.com , content nicely shown. works on ie , safari.
action result (on chrome only) user gets url in browser = http://example.com/#base_domain=example.com actual page blank (no visible content) view source reveals content present.
action result (on firefox only) user gets url in browser = http://example.com/#_=_ actual page blank (no visible content) view source reveals content present.
additional info if come in url http://example.com/#base_domain=example.com ie same 'hidden' content (i.e. blank page html source still present).
i should note utilize redirecttoaction/302 redirect technique in other parts of application no issues whatsoever.
the issue repros ajax navigation turned off.
edit: works on safari (osx + windows) no issues. it's apparently broken on chrome + firefox on both windows , pc.
ios/safari: ok win/safari: ok win/ie: ok windows phone emulator: ok
win/firefox: borked win/chrome: borked
osx/safari: ok osx/firefox: borked osx/chrome: borked
not sure android.
the best solution appears setting force state , hash listening false - chrome/ff ignore them. had ajax navigation disabled (there interesting behaviours hadn't accounted yet server side code).
$.mobile.pushstateenabled = false; $.mobile.hashlisteningenabled = false; i'll wait 1.1 , stabilise rest of code before trying ajax navigation working.
facebook asp.net-mvc-3 jquery-mobile
Comments
Post a Comment