Skip to content

Clicking "Page 1" from mentorship log returns 404 #3

@zacharyliu

Description

@zacharyliu

The mentorship logging system supports pagination of log entries via CodeIgniter's Pagination class. It is used to display a page indicator at the bottom of the page. Clicking to the second page of logs works properly and adds a "/page/2" to the end of the URL to indicate the page number. However, when on page 2 and clicking back to the first page, the URL generated ends in "/page/". This returns a 404 error: http://www.hths.mcvsd.org/mentorship/page/.

Interestingly, this bug is also partially present in the News Archives section in that it, too, produces a link ending in "/page/". Yet it works properly in the News Archives and does still display page 1.

The reason for it working in the News Archives and not in the mentorship logs is likely due to routing issues. Still, the best solution should be to not link to "/page/" at all and instead generate a proper page 1 link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions