mardi 17 mai 2016

Ember.js routing in Safari - Router is silently failing and redirecting to my site's index (No code sample inside)

Apologies in advance--I won't be able to provide a code sample, but I'll do my best to communicate the issue and answer any questions for those so kind as to try to help me figure this out.

Basically, my site has a "reset password" feature which can be accessed thus:

{site domain}/member/#/reset-password?reset_password_token=jalksdjfx

This works just fine in Chrome, Firefox, and IE11, but silently fails in Safari. Upon entering the URL into Safari's address bar, the user is redirected to my site's login page, and it's unclear why.

Here's what I've tried so far in an effort to determine the issue's cause:

  • I've proxied a modified copy of the suspect JavaScript (including several debugger statements and console logs) against Safari using Charles, but this hasn't turned up anything useful.
  • I've stepped through the unmodified code, but there are no apparent errors or conditions that would result in the sudden redirect; it just happens.
  • I've monitored the page's HTTP traffic using both Charles and Chrome and Safari's network tabs and am seeing nothing that would cause this. As I said before, the redirect comes suddenly.

Has anyone encountered an issue like this using Ember.js? I've been trying to figure this out for at least two days and have had zero success.




Aucun commentaire:

Enregistrer un commentaire