Link dropdown menu item to selected tab

Hey! I encountered a problem with my nav bar links.

problem: The dropdown items link only works in homepage, not in project page.
I implemented custom code for the dropdown items to link to one of the two tabs on the home page. But it doesn’t work anymore on the project page…

Thank you so much!

The code i’m using:

Here is my site Read-Only: Webflow - ziyi's playground

Here’s the published site:

I got it! This is the tutorial and post I watched&read for solving this problem, for anyone who’s interested: