Skip to content

How to make custom headers / footers support sub url ? #4035

Answered by infotexture
abcfy2 asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you're setting absolute paths in the navbar links, which resolve to something like mydomain.com/Documents.html.

If the contents of the /docs/ folder are all on one level, you should be able to use relative links without the leading slash, like this:

<div class="collapse navbar-collapse" id="navbarSupportedContent">
  <ul class="navbar-nav">
    <li class="nav-item"><a class="nav-link" href="Documents.html">Documents</a></li>
    <li class="nav-item"><a class="nav-link" href="Guides.html">Guides</a></li>
    <li class="nav-item"><a class="nav-link" href="Specs.html">Specs</a></li>
  </ul>
</div>

If your generated files include multiple directory levels, you could add the /docs/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abcfy2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants