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

Nav links for next/previous pages do not contain applied filters #64

Open
hroncok opened this issue May 1, 2016 · 0 comments
Open

Nav links for next/previous pages do not contain applied filters #64

hroncok opened this issue May 1, 2016 · 0 comments

Comments

@hroncok
Copy link
Contributor

hroncok commented May 1, 2016

When I do the following query (count is not necessary to reproduce):

GET /courses/?day=5&count=1

Actual result:

{
    "_embedded": {},
    "_links": {
        "courses": [
            {
                "href": "/courses/276"
            }
        ],
        "next": {
            "href": "/courses?page=2&count=1"      <----HERE
        },
        "self": {
            "href": "http://127.0.0.1:5000/courses?day=5"
        }
    },
    "count": [
        "1"
    ],
    "day": 5
}

Expected result:

{
    "_embedded": {},
    "_links": {
        "courses": [
            {
                "href": "/courses/276"
            }
        ],
        "next": {
            "href": "/courses?day=5&page=2&count=1"      <----HERE
        },
        "self": {
            "href": "http://127.0.0.1:5000/courses?day=5"
        }
    },
    "count": [
        "1"
    ],
    "day": 5
}
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