Avaiga / website

Public Taipy web site.
https://taipy.io
Apache License 2.0
7 stars 4 forks source link

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

Open voolga opened 2 months ago

voolga commented 2 months ago

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:

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.