I the html files I've set a navigation bar and use the root directory for href links, such as href="/<HTML Project Root Folder>/<Subfolder>/index.html".
The project is located at file:///Users/<username>/Documents/GitHub/<HTML Project Root Folder>/ locally.
However, when I click the tabs at the navigation, it seems to look for file:///<HTML Project Root Folder>/ and thus produces a blank page. Consequently, I can't use the navigation locally; I have to upload to the server to debug the links and navigate to other pages.
Relative path works perfectly but is not an option for the navigation bar, because the web pages are not all located in the same directory.
Is there a place to set the root directory locally for HTML preview?
Hello,
I the html files I've set a navigation bar and use the root directory for
href
links, such ashref="/<HTML Project Root Folder>/<Subfolder>/index.html"
.The project is located at
file:///Users/<username>/Documents/GitHub/<HTML Project Root Folder>/
locally.However, when I click the tabs at the navigation, it seems to look for
file:///<HTML Project Root Folder>/
and thus produces a blank page. Consequently, I can't use the navigation locally; I have to upload to the server to debug the links and navigate to other pages.Relative path works perfectly but is not an option for the navigation bar, because the web pages are not all located in the same directory.
Is there a place to set the root directory locally for HTML preview?
Thanks!