How to link to page directory instead of specific file #4904
Unanswered
callmegoon
asked this question in
General
Replies: 1 comment 2 replies
-
@callmegoon Have you ended up with any solution? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm converting a site to use parcel and am trying to figure out how to link to a directory instead of directly to the index.html in that directory.
For example, my existing nav is like this...
This doesn't seem to work. When I fire up the local server and click the nav item, the URL updates, but it doesn't actually go to the page. However, if I change all of the hrefs to "/work/index.html" for example (explicitly pointing to index.html), then it works perfectly.
I can certainly make that change, but I'd prefer not to and figure there must be something I'm missing to just link to the directory.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions