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

Default homepage (index.html) #112

Open
cstjean opened this issue Sep 30, 2020 · 1 comment
Open

Default homepage (index.html) #112

cstjean opened this issue Sep 30, 2020 · 1 comment

Comments

@cstjean
Copy link
Contributor

cstjean commented Sep 30, 2020

Is there any way to serve index.html when / is opened? I care because a relative URL to salad.html from /potato/index.html leads to /potato/salad.html. If I serve my page at /potato/, it'll point to /salad.html instead.

@jpsamaroo
Copy link
Collaborator

I think there are two separate issues here:

  • How to go from / to /index.html automatically
  • Why a link to salad.html (when at /potato/index.html) leads to /potato/salad.html

For the former, you should just need to provide a page handler for /index.html; clients will usually try that by default if / doesn't go anywhere.

For the latter, this is expected behavior to my understanding. That is a relative link, so it'll stay within the same location in the tree. If you want to go to /salad.html when further down the tree, you need to specify that exactly.

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

No branches or pull requests

3 participants