Linking to another html page is not working?

I tried to link the settings tab as shown in the sidebar to a new HTML page called (settings.html), but when I click on the settings it does not direct me to the (settings.html) page.

settings tab on the sidebar

Both HTML pages use the same external JavaScript file, and I only was able to navigate to the settings page from the sidebar, when I removed the JavaScript file from the HTML code.

This is the website code on GitHub
[https://github.com/Jehad-Sauafth/Dashboard.git]