Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

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

Open
martinmts opened this issue Mar 28, 2021 · 1 comment
Open

Comments

@martinmts
Copy link

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
Copy link

Bump 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants