'How to keep selected tab on page refresh with Bootstrap 4

I have a menu with a "nav-tabs" class property as follows. What I want is to keep the last active tab active again when the page is refreshed. There are dozens of solutions on the Internet, but none of them have worked. Is there anyone who can help with this? Regards.

My tabs are here Tabs Codes

JS codes are here JS Cdes



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source