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 8673413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:27:10+00:00 2026-06-12T19:27:10+00:00

I am using the backbone boilerplate here https://github.com/tbranyen/backbone-boilerplate I do development in static html/js

  • 0

I am using the backbone boilerplate here
https://github.com/tbranyen/backbone-boilerplate

I do development in static html/js offline and do test offline before uploading to another pre-production site online. What annoyed me is that the router works in pre-production but not offline. This is the root for pre:

  var app = {
    // The root path to run the application.
    root: "/myfolder/"
  };

This is the URL for online pre-production:

http://www.mywebsite.com/myfolder/index.html

This is URL for offline:

file:///C:/Users/MyHome/Desktop/MyProject/MyApp/index.html

What do I use for root in offline? Is there a way NOT to keep changing root every time I upload to pre-production? Or does router not working in static html at all?

p.s. This is the code in main.js

Backbone.history.start({ pushState: true, root: app.root });
  • 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-06-12T19:27:12+00:00Added an answer on June 12, 2026 at 7:27 pm

    Never mind. After doing some reading, pushState does not work with file protocol

    https://github.com/mtrpcic/pathjs

    http://html5doctor.com/history-api/

    The HTML5 Mozilla document doesn’t say this though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting out with backbone and using the boilerplate ( https://github.com/tbranyen/backbone-boilerplate ). My
a newbe question: I've downloaded the backbone boilerplate from https://github.com/david0178418/BackboneJS-AMD-Boilerplate it uses require.js and
I am using the backbone-boilerplate, which you can find here . I was wondering
Using backbone.js, here is a quick test to demonstrate the problem I am facing
I'm currently using backbone boilerplate and running it on my MAMP server localhost. I
I am using backbone.js here is my scenario Lets say I have a view
I am building an application using the Backbone Boilerplate , and am having some
I'm using backbone boilerplate to render my templates, its fetchTemplate method caches the rendered
I'm working on an app that uses Backbone and RequireJS (using the Backbone boilerplate).
Trying to get my head around backbone.js. This example is using Backbone Boilerplate and

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.