Comments (5)
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.
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.
- 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.
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.
works, error in console is gone!
from bide.
Related Issues (14)
- Support for anchor tag - currently pollutes results HOT 3
- Warning due to resolve with clojurescript >= 1.9.660 HOT 1
- navigate! appends query when using html5 HOT 8
- Warning when compiled with shadow-cljs: variable toString is undeclared HOT 2
- Nested query params HOT 1
- Operation for replacing a URL without modifying history HOT 2
- query params go before the hash HOT 2
- query params keep on getting added to the end HOT 1
- Support for hot reload
- Url token Keywords with Hyphens HOT 3
- Support for Clojure HOT 4
- Do I need something like pushy for pushState? HOT 1
- Simple Project Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bide.