Comments (8)
The work around I did:
var data = {};
$.each(r.params, function(n, v) {
data[n] = decodeURIComponent(v);
});
from davis.js.
I think this could be due to the way that forms are serialised with jQuery, I'll take a closer look though because I thought this was being handled. I think you should get your params in a non-urlencoded form though so this does sound like a bug.
from davis.js.
Fixed in the latest release, 0.9.0.
from davis.js.
I'm on 0.9.0, but I'm still having this problem with spaces. decodeURIComponent() will not decode spaces that are encoded as '+' and a handful of other things. Do spaces work for you?
from davis.js.
Ah, sorry this isn't working for you. I'll take a look and see if I can get this resolved once and for all. Is it just the spaces as pluses that you are having problems with? To help me fix this could you give me an example of the link/form paths that causing the issue.
from davis.js.
It's normal GET with a single type="text" name="q" parameter. I think more characters maybe be a problem, but I'm no expert, so this is how I solved it for now:
query = URI(@raw.fullPath).query(true).q
This is using the URI.js library, so I didn't have to worry about what else needs handling.
from davis.js.
Ok cool, I'll take a look and get a better fix out for this.
from davis.js.
Fixed in 0.9.1 - sorry for the delay!
from davis.js.
Related Issues (20)
- POST routes defined within a scope don't work HOT 3
- Problem with getting hash routing to work HOT 6
- NodeJS / Express Server side Example?
- route matching not working in Firefox when JetBrains Add-on is isntalled
- request.isForPageLoad having issue while coming back to original server rendered url HOT 1
- AMD/UMD support HOT 2
- Route not found causes davis to stop HOT 1
- Redirection w/e req
- Combine hash routes with push state on single application
- Not supported Actively? HOT 7
- Cannot navigate within routes and manually to update URL
- [enhancement] Add missing bower.json. HOT 1
- How to refresh a page without doing a full window reload
- Semicolon delimited query parameters after the path causes route not to match
- davisjs.com gone HOT 2
- Does not properly handle not found routes with a target _blank attribute
- routeCollection is empty
- Davis Router is not working FirefoxOS HOT 1
- Problem with # routing in Davis Js HOT 1
- License Text
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 davis.js.