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

Urls and pagination ignore api version #499

Open
PapaBravo opened this issue Dec 18, 2020 · 2 comments
Open

Urls and pagination ignore api version #499

PapaBravo opened this issue Dec 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@PapaBravo
Copy link

Issue description

The projects API returns errornous API links in the pagination section (next, previous) and in results[*].url.

Steps to reproduce the issue

  1. Navigate to https://fixmyberlin.de/api/v1/projects
  2. Inspect the next field in the response json

What's the expected result?

  • "https://fixmyberlin.de/api/v1/projects?page=2"
  • Following this link brings me to the next page of the list

What's the actual result?

  • "https://fixmyberlin.de/api/projects?page=2"
  • Follwing this link brings me to the API landing page
@PapaBravo PapaBravo added the bug Something isn't working label Dec 18, 2020
@cafca
Copy link
Contributor

cafca commented Jan 5, 2021

Hey @PapaBravo, thank you for the bug report. This is indeed an open issue. Possible solutions would be either removing pagination (and the accompanying links) or configuring Django to generate accurate links.

@ohrie
Copy link
Contributor

ohrie commented Feb 24, 2022

This is a duplicate of #260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants