Skip to content

Fragment handling for hash bang URLs #11

Open

Description

@lxbarth

I just pushed a fix to fragment handling for hash bang URLs : 45becbc

Basically two things were broken:

  • the override to Backbone.history.saveLocation()
  • getFragment() stripped out the ! leading to mismatches of same URLs in checkUrl() (!/path != /path)

The fix brings extensive overrides to backbone which I'd rather avoid. The messiness stems from the fact that with hash bang (#!) URLs what's in the browser history (!/path) is different from the actual routes (/path) and thus non-JS fallbacks (http://example.com/path).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions