-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing root tab #1
Comments
Unfortunately, all of the testing that I performed was done under subdirectories as the 'root' on all of my sites contain index.html files. On line 36 in history.js and line 10 in footer.html there is "if (segments[i] !== '')" which filters out the root node because we're splitting on '/' in document.location.pathname Perhaps:
If you'd like to try that or some change therein I'd appreciate it! |
I just tested this and it APPEARS to work. Please try on your root folder and let me know. |
Alright, I was wrong but this really DOES appear to work with the side effect (which I'll work on later) that it always shows 'Root' even if the webroot is a subpath:
The above is my 'hacky' way of checking if the item matches '' AND it's not the last element in the array.. |
I've just hacked your second snippet in to the code and it's working great 👍 Thanks a lot for the fast work |
Seems the 'Parent Directory' link will not work on first-level directory. |
Show Parent Directory (or first directory) TheInsomniac#1 (comment) comment the below out in the CSS file tbody tr:first-child { display: none; }
Hi,
I'm missing the root tab in the theme, for example I'm using autoindex straight from the rootfolder. After I change to a subdirectory, I see the dirname on the top but there's no tab or button to get to the rootdir.
The text was updated successfully, but these errors were encountered: