Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:45:28+00:00 2026-05-30T12:45:28+00:00

I have made a complete mess of things right now. I updated to Backbone.js

  • 0

I have made a complete mess of things right now. I updated to Backbone.js 0.9.1, updated to slash based URLs and started using pushstate:true. 5 days later I test my app on IE9 and the URLs just don’t stick to the page they are linking to.

I did something like this:

main.html

<a href="/signup">Do Signup</a>

Browser goes to mydomain.com/signup for a second, then jumps back to main.html with URL mydomain.com/#signup.

Reverting to pushstate:true does resolve the trouble of simple links but breaks down the things where I defined the router to have routes like…

SignupRouter = Backbone.Router.extend({
  routes: {
    'signup': 'signup',
    'signup/:key': 'confirm'
  }, initialize: function() {
    // do some stuff here
  }, signup: function() {
    // signup view
  }, confirm: function() {
    // confirm view
  }
});

If I don’t use pushstate I have to go back to the strategy of creating a separate route for every page and loading the router based on a server side variable (very primitive I know):

SignupRouter = Backbone.Router.extend({
  initialize: function() {
    // signup view
  }
});

ConfirmSignupRouter = Backbone.Router.extend({
  initialize: function() {
    // confirm view
  }
});

Is there some IE friendly way of doing this (IE7~9)? Some workaround on server side? Anything?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:45:29+00:00Added an answer on May 30, 2026 at 12:45 pm

    If turning off pushState makes it work in browsers that don’t support it then try using the backbone PushState test to pre-emptively turn it off (this code is based on the _hasPushState variable in the Backbone source):

    // Enable pushState for compatible browsers
    var enablePushState = true;  
    
    // Disable for older browsers
    var pushState = !!(enablePushState && window.history && window.history.pushState);
    
    Backbone.history.start({ pushState: pushState });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a String[] array by using String.split(.) . I am now trying
i have made an application having entity framewrok. It is wpf application, now it
I have made a website using( Asp.net, c# ) and its content in English
i have made a few multi activity database applications using sqlite, but i get
I have made something just like this using php and mysql. Just curious to
can anyone please guide me towards using mailchimp with MVC 3.. I have made
Using C# for a console program in MicroSoft Visual Studio 2010, I have made
I have made a jQuery toggle for a menu that I had in mind.
I have made an application for IPad in objective C. In this I am
I have made a code that read data from flash Nand (without filesystem). fd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.