Skip to content

The pagination of explore page does not honor the sort attribute. #1980

Closed
@ThingsHybrid

Description

@ThingsHybrid
  • Gitea version (or commit ref): 1.1.1 / 1.1.2
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The explore page has the 'sort' option on dropdown menu. The sorting works on the first page. As soon as the 'Next' page button is clicked, it goes to the next page; however, the sort=[algorithm] is lost. If I manually add the query attribute to the url, it works correctly. I think this is a minor bug.

For example:
The url "/explore/repos?page=2&q=&tab=" should have been "/explore/repos?sort=alphabetically&q=&tab=&page=2" where the "sort=[algorithm]" should be included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions