count – Magento 1.9.4 is not counting the current page in the categories

I discovered a weird issue with our Magento Shop. On categories and subcategories, Magento is not counting the current page you are in. When you go back from the product view, the user always returns to the first page of the category.

The URL also doesn’t hold the current page value (category.html?p=2), like it should. My technical knowledge is very rusty, and it’s been years since I worked with Magento, so I hope someone knows a quick fix.

Thank you!