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

_renderUrl() problems #200

Open
itdpong opened this issue Nov 17, 2016 · 1 comment
Open

_renderUrl() problems #200

itdpong opened this issue Nov 17, 2016 · 1 comment

Comments

@itdpong
Copy link

itdpong commented Nov 17, 2016

problem 1:
when I use _renderUrl() to generate url (http://server.com/store?sortBy=+groupid) and pass to server side.
in server side, the sortBy value in php is ' groupid', + character was ignored since the url hasen't encoded.

problem 2:
I create a one page application, user may filter the records by a form when they submit the form.
the result is the url become longer and longer when user submit the form more than 1 time. for example:

the url is like this: http://server.com/store

user submit the form and I generate the url to server by _renderUrl()
http://server.com/store?memberId=10&shopId=5

user change the option and submit again
http://server.com/store?memberId=10&shopId=5&memberId=14&shopId=2

user change the option and submit again
http://server.com/store?memberId=10&shopId=5&memberId=14&shopId=2&memberId=20&shopId=6

the query string become longer and longer

@itdpong
Copy link
Author

itdpong commented Nov 18, 2016

1 more question, I know that the RQL using in dstore was come from here
https://github.com/persvr/rql

area there any php library can extract the RQL query string back into php variables????

itdpong added a commit to itdpong/dstore that referenced this issue May 25, 2017
the original _renderUrl() method will make the query string become longer and longer, so I write a fix for myself
SitePen#200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants