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

is it possible to disable the default url encoding in pagination.links? #74

Closed
tmerkaj opened this issue Nov 5, 2019 · 4 comments
Closed

Comments

@tmerkaj
Copy link

tmerkaj commented Nov 5, 2019

We do have the urls encoded and the pagination does another encoding on the already encoded url.

@lixxu
Copy link
Owner

lixxu commented Nov 6, 2019

please try version 0.5.5 and pass the argument url_coding=None to disable it.

@tmerkaj
Copy link
Author

tmerkaj commented Nov 6, 2019

Thanks for your quick reply, Just tried that, unfortunately didn’t fix the issue.
in page_href(self, page) the call to url_for encodes the url, maybe there should be a flag to check and not encode it if set to false.

@lixxu
Copy link
Owner

lixxu commented Nov 7, 2019

IMO, url_for does not have option to disable encode. you may turn to https://github.com/pallets/flask/issues for help.

@tmerkaj
Copy link
Author

tmerkaj commented Nov 7, 2019

ok thanks

@tmerkaj tmerkaj closed this as completed Nov 7, 2019
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

2 participants