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

Revisions pagination is broken for wiki pages #31755

Closed
na-Itms opened this issue Aug 1, 2024 · 0 comments · Fixed by #31760
Closed

Revisions pagination is broken for wiki pages #31755

na-Itms opened this issue Aug 1, 2024 · 0 comments · Fixed by #31760
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@na-Itms
Copy link

na-Itms commented Aug 1, 2024

Description

When viewing the revision history of wiki pages, the pagination links are broken: instead of org/repo/wiki/Page?action=_revision&page=2, the link is only org/repo/wiki/Page?page=2, thus bringing the user back to the wiki page.

It looks like $paginationParams is not correctly set in the base/paginate template in this specific case, I do not know why.

Example: https://demo.gitea.com/na-Itms/test/wiki/Home?action=_revision

Screenshots

image

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Firefox 128

@na-Itms na-Itms added topic/ui Change the appearance of the Gitea UI type/bug labels Aug 1, 2024
@lunny lunny added this to the 1.22.2 milestone Aug 1, 2024
@lafriks lafriks closed this as completed in 976f78e Aug 3, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Aug 3, 2024
wolfogre pushed a commit that referenced this issue Aug 4, 2024
Backport #31760 by @lunny

Fix #31755

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants