Browser back button to last clicked item in my menu

Hi All! Not sure if animation is the correct category for my inquiry, but I have been working on this website for some time now, and stumbled upon something I can’t figure out. I’m not sure if it needs somme coding too.

I have this projects page and when I click on a certain category (for example, residential), it pulls up a menu of the projects collection. When I click on a project, and try to go back, it directs me back to the main page and not the projects collection menu (if that makes any sense).

To make user experience easier, I was hoping that the browser back button would re-direct me to the projects collection menu and not the main page menu (residential, commercial, arch…)


Here is my website: Portfolio • Mu Peng
Here is my read-only link: https://preview.webflow.com/preview/mupeng?utm_medium=preview_link&utm_source=designer&utm_content=mupeng&preview=ca3837f6f20740992492f6fb4d5e5ffe&pageId=60f550f3e5a0332c58de786d&workflow=preview