Skip to content
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

Sidebar links to sub directory instead of subdirectory/index.html #24

Open
jiahaog opened this issue Nov 22, 2015 · 2 comments
Open

Sidebar links to sub directory instead of subdirectory/index.html #24

jiahaog opened this issue Nov 22, 2015 · 2 comments

Comments

@jiahaog
Copy link

jiahaog commented Nov 22, 2015

I have a nested directory of photos, but when simply run expose, the links on the left sidebar link to the directory instead of the index.html within that directory. For example, the links are

<a href="../subfolder" ... ></a>

which ends up opening a new finder window for that directory. I think they should be referencing the index.html within the directly which will produce the correct behaviour as such:

<a href="../subfolder/index.html" ... ></a>

I'm not sure if this is the intended behaviour or if I'm using it wrongly, I've tried running it in both Safari and Chrome on my Mac.

@Jack000
Copy link
Owner

Jack000 commented Nov 22, 2015

Presumably you'll be putting the generated site on a server somewhere, in which case the index file is served when you visit the directory url. It could work in the finder just by adding index.html to the end of the paths, but then the urls would become a bit ugly.

sercxanto added a commit to sercxanto/Expose that referenced this issue Jul 31, 2017
Link to index.html instead of directory. This allows the local browser to
follow the links directly.

Fixes Jack000#24 .
@sercxanto
Copy link

+1 I also like the idea to browse the gallery locally. With the referenced change the links resolved correctly in the local browser.

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

No branches or pull requests

3 participants