Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding querystring #185

Open
amnesia7 opened this issue Nov 6, 2013 · 0 comments
Open

Encoding querystring #185

amnesia7 opened this issue Nov 6, 2013 · 0 comments

Comments

@amnesia7
Copy link

amnesia7 commented Nov 6, 2013

I have a GET form that I'm entering foo, bar in a field.

This generates a string of text (foo%2C+bar) for a parameter in the querystring.

I'm then using ajax-enabled links to paginate through the form results.

After clicking the paginate link the address then becomes foo%252C%2Bbar.

Is this normal?

At the moment I'm having to do the following but I'm sure I shouldn't need to because if I follow the links without javascript they stay correct:

var href = $(this).attr('href');
href.split('?');
// decode querystring of ajax-powered links
$.address.value(href.split('?')[0] + '?' + decodeURIComponent(href.split('?')[1]));

Hopefully someone can offer an explanation.

I'm using Chrome if that makes any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant