jupiterjs/jquerymx — Issue #102: Issues with route.js in jmvc-3.2.1
Author: suryapavan
Created: 2011-12-15 12:59:53+00:00
State: open

Hi,
I am facing few issues while working with $.route functionality. (jquery/dom/route/route.js)

(1)while getting data from url and (2) while setting the url

>> WHILE GETTING DATA FROM URL: ($.route.data._data)
==============================
I have set the route rule as $.route(':/var1');
And my url consists of a base64 encoded value. For eg: 'suryapavan' is encoded to "c3VyeWFwYXZhbg=="

Say, url is http://localhost/test/#!/c3VyeWFwYXZhbg==
Now, the $.route.data._data is having the key 'var1' with value "c3VyeWFwYXZhbg" (instead of "c3VyeWFwYXZhbg==")

Why these characters are being stripped?

>> WHILE SETTING THE URL:
========================
I have a $.route rule as $.route(":var1/:var2");

But in the URL, if any of the values (val1 or val2) is having special characters like ". , /= etc", its not showing up.

I mean, for eg: var1 is given as "aaaa" and var2 is given as "bbbb/cccc"
the url is comming up as "#!aaaa/bbbb" (cccc in var2 is missing).
[ expected result: '#!aaaa/bbbb%2Fcccc' ]

This problem exists even in that example "jquery/dom/route/route.html"

Hope you understand my problems!

There may be something wrong with the escaping in route.js
Could anyone please help me.

My project was stuck-up abruptly due to these errors! and it has stopped the project delivery :(

-Thanks!