Just use a relative link - this will work (note the slash at the beginning):
<a href="profile.html">profile</a>
This is because Electron uses local file:// URLs that map to your file system. If you link to /profile.html , which will look for the file in the root directory of your drive, and you probably want it to download the file from the same directory.
Also, if you place the profile.html file in the directory with page names, you can access it as follows:
<a href="pages/profile.html">profile</a>
Alex warren
source share