Turbo 8 + Bootstrap dropdown not working after changing URL

I have dropdowns in my navbar. When I click on dropdown item it I’m redirect to another page but when I try to click to open the dropdown it doesn’t work.
I need to change the location for it to work again and then it stop working.
It works one out of two times.

Here is an example

Screen Recording 2024-05-03 at 19.29.05