Skip to content

Pagination / pager->links() double encodes links #1680

Description

@niteraven7

My app is showing some results/reviews on a page and I also have the ability to filter these results using various criteria. My filter parameters passed as an array and are form submitted with get that has a URL like:

/reviews?filter%5Bkeyword%5D=test&filter%5Bsubmit%5D=1

The pager->links() currently and incorrectly double encodes the [] and then appends page=1, 2, 3 etc. to the end:

/reviews?filter%255Bkeyword%255D=claim&filter%255Bsubmit%255D=1&page=2

Note the 255B and 255D are double encoded [ and ] and it's breaking the URL.

version: alpha4

Thanks!

-Kyle

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions