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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:16:00+00:00 2026-05-30T17:16:00+00:00

Is it possible to force History.js – https://github.com/browserstate/History.js/ – to use the hash URLs

  • 0

Is it possible to force History.js – https://github.com/browserstate/History.js/ – to use the hash URLs in a browser which does support HTML5/history API?

This is only for local testing, so fiddling with the History.js source is fine if that’s required.

  • 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-30T17:16:02+00:00Added an answer on May 30, 2026 at 5:16 pm

    I wanted to do the same thing for testing purposes and ended up updating the following lines in the jquery.history.js library.

    Original: (View on GitHub)

    m.emulated={pushState:!Boolean(a.history&&a.history.pushState&&a.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in a||"onhashchange"in d)||m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8)}
    

    Hack Solution:

    m.emulated={pushState:true,hashChange:true}
    

    I’m using the HTML4+HTML5 bundled minified code, but the line corresponds to Line 269 in the history.js uncompressed file. If you are using a different version, the corresponding section is here:

    Unminified Original (View on GitHub):

    History.emulated = {
    pushState: !Boolean(
    window.history && window.history.pushState && window.history.replaceState
    && !(
    (/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent) /* disable for versions of iOS before version 4.3 (8F190) */
    || (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) /* disable for the mercury iOS browser, or at least older versions of the webkit engine */
    )
    ),
    hashChange: Boolean(
    !(('onhashchange' in window) || ('onhashchange' in document))
    ||
    (History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8)
    )
    };
    

    Hack Solution:

    History.emulated = {
        pushState: true,
        hashChange: true
        };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is possible to force the browser to open a link of type <a href=ftp://my.ftp.com>FTP
Is it possible to force liftweb mapper use table name in lower case for
Is it possible to force latex to use the slash notation for a fraction
Is it possible to force jquery use CSS3 transitions for its fadeIn fadeOut effects?
Is it possible to force a COM Visible .NET assembly to instantiate as System.__ComObject,
Is it possible to force gcc use int instruction for all the system calls,
Is it still possible to force Hibernate 3.3 or 3.5 to use CGLib instead
I wonder whether it is possible to force nginx to use some user/group for
Is it possible to force the browser to clear the cache for a whole
Is it possible to force browser to reload a Silverlight application - basically .aspx

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.