MarkyMan4/news-nlp-frontend

When filtering, it should go back to the first page.

Closed this issue · 1 comments

This will help avoid the issue where filtering reduces the page numbers to less than the current page and causes an error. This can't be done by just passing 1 to getArticlePage since the page num is a URL parameter.

Fixed by making the apply filters button a link instead of a button. This way it redirects to the first page every time filters are applied.