### Bug description

When I render a qmd file to a website, the index.html points to the incorrect file. reproducible exampl here: https://github.com/poldrack/talks-nipreps. inside cloned repo:

```
rm -rf docs 
quarto render NiPreps.qmd
```

This renders to docs/talk - index.html in that folder should redirect to NiPreps.html, but instead redirects to LICENSE.html:

```
% more docs/talk/index.html
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Redirect to LICENSE.html</title>
    <meta http-equiv="refresh" content="0;URL='LICENSE.html'" />
  </head>
  <body>
  </body>
</html>
```

This is using quarto CLI version 1.2.267 on Mac OS 12.6

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2022-11-11T19:16:11Z
poldrack
bug
v1.3
closed
index.html redirects to incorrect file
https://github.com/quarto-dev/quarto-cli/issues/3297