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

Pagination Redirects to Blog Homepage When Navigating Back to Page 1 in Category View #44

Open
voolga opened this issue Aug 16, 2024 · 0 comments

Comments

@voolga
Copy link
Contributor

voolga commented Aug 16, 2024

Description:

A minor bug has been identified on the blog page related to pagination within categories with a large number of posts. When attempting to navigate back to the first page of a post list via pagination, the route navigates to the blog homepage instead of returning to the first page of the selected category.

Steps to Reproduce:

  1. Go to the blog page.
  2. Select a category with a large number of posts (e.g., Community).
  3. Navigate to any page other than the first one, expected route /blog/category/community-contributions/page/2 (e.g., page 2 or 3).
  4. Attempt to return to the page 1 using the pagination controls buttons.

Expected Result:

The user should be redirected to the first page of the current category (/blog/category/community-contributions).

Actual Result:

The route changes to the blog homepage (/blog), redirecting the user to the main blog instead of the first page of the selected category.

Environment:

  • Browser: not browser-dependent
  • Operating System: not OS-dependent

Additional Information:

The issue is not browser-dependent and is likely related to incorrect routing logic during pagination. It's possible that the issue is located in the following section of the codebase - github link

This part of the code might be changing the route incorrectly, causing the user to be redirected to the main blog page instead of the index page of the selected category.

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