harmsk / atom-html-preview

Atom HTML Live Preview Package
MIT License
174 stars 73 forks source link

Is There a Place to Set the Root Directory for the Website Project? #231

Open martinmts opened 3 years ago

martinmts commented 3 years ago

Hello,

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?

Thanks!

Column01 commented 3 years ago

Bump 😄