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:
Go to the blog page.
Select a category with a large number of posts (e.g., Community).
Navigate to any page other than the first one, expected route /blog/category/community-contributions/page/2 (e.g., page 2 or 3).
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.
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:
/blog/category/community-contributions/page/2
(e.g., page 2 or 3).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:
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.