Coder Social home page Coder Social logo

Comments (5)

niwinz avatar niwinz commented on June 12, 2024

html5 is not used by default just because it mutates directly the url (not the uri fragment), that implies that if the user refreshes the page will get the 404 response unless the server is properly configured to return the "index.html" on all uris.

On the other hand, would be awesome have the ability to switch the implementation for users that want/need to use html5 history.

However, this error is pretty strange, I'm using bide in many projects and don't notice similar exceptions in console.

from bide.

 avatar commented on June 12, 2024

in this pull request for pushy kibu-australia/pushy@88cbb28 fragment support is added for HTML5History, so it does not seem impossible

an alternative would be to split-off the history part (make bide only for routing) and let users decide if they want to use History or HTML5History by using an add-on (such as pushy)?

regarding the error, it could be that my browser (qutebrowser) is old (webkit engine). I'll try with webengine, if the error does not show up there I rename this issue to HTML5History suppport :)

from bide.

 avatar commented on June 12, 2024
  • tested with qutebrowser-webengine: same errors show up in the console.
  • the errors in the console seem to popup only when changing the query part of the url using navigate!

from bide.

niwinz avatar niwinz commented on June 12, 2024

I have pushed on master (and 1.3.0-SNAPSHOT) with html5 support. It can be enabled passing :html5 true to the opts to start! function. From now, bide uses Html5History instead of History for all cases (with and without fragment).

from bide.

 avatar commented on June 12, 2024

works, error in console is gone!

from bide.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.