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

Incorrect link to doc for categories #10058

Closed
2 tasks done
joubu opened this issue Sep 27, 2023 · 1 comment
Closed
2 tasks done

Incorrect link to doc for categories #10058

joubu opened this issue Sep 27, 2023 · 1 comment
Assignees
Labels
bug Something is broken.
Milestone

Comments

@joubu
Copy link
Contributor

joubu commented Sep 27, 2023

Describe the issue

At least for categories, the anchor to the documentation is auto-generated and become categorys when it should be categories.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

  1. Go to http://localhost/api/categories/
  2. Click See the Weblate's Web API documentation for detailed description of the API.
  3. You end up at the top of the api.html page instead of at the correct anchor: https://docs.weblate.org/en/weblate-5.0.2/api.html#categories

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

No response

Weblate deploy checks

No response

Additional context

The link is generated in api/views.py:

141 f"{view.serializer_class.Meta.model.name.lower()}s",

@nijel nijel self-assigned this Oct 3, 2023
@nijel nijel added the bug Something is broken. label Oct 3, 2023
@nijel nijel added this to the 5.1 milestone Oct 3, 2023
@nijel nijel closed this as completed in f5f0410 Oct 3, 2023
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

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

No branches or pull requests

2 participants