Comments (2)
Yes, rlite decodes the URL components so that unescaped values can be passed to the handlers. (e.g. the handlers would get "Chris Davies" instead of "Chris%20Davies". If you pass an invalid URL, it will currently throw an exception (that's the behavior of decodeURIComponent
). So, your URL would work if you passed /a%25b
instead.
Generally speaking, browsers do this for you, so the only problem is when you manually pass in an invalid URL as in your example.
from rlite.
Okay, I'll just replace %
with %25
before passing it to rlite. Hopefully this is the only such case.
from rlite.
Related Issues (20)
- Test issue
- Routes with multiple parameters HOT 1
- Typo in the readme.md HOT 1
- This is the best router HOT 1
- Middleware support HOT 1
- Cannot read property 'define' of undefined HOT 3
- Hashbang/Shebang support HOT 1
- Uncaught ReferenceError: rlite is not defined HOT 6
- Not a flexible language for setting a template HOT 3
- Greedy parameter matching HOT 5
- Error when matching conflicting URLs in one edgecase
- Possible wildcard match bug HOT 7
- Dumb question HOT 1
- support history api? HOT 3
- Can't load / use rlite HOT 3
- Example without hash based routing
- Implement Hash routing but leaving the root location alone.
- Publish to npm? HOT 4
- Uppercase routes
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 rlite.