Hi, @elect86. The redirect rule in netlify.toml
is this:
[[redirects]]
from = "/"
to = "/build/dokka/html/kotlin-unsigned"
I do see this redirect working when I test:
$ curl -svo /dev/null https://unsigned.netlify.app/ 2>&1 | egrep '< (HTTP|location)'
< HTTP/2 301
< location: /build/dokka/html/kotlin-unsigned
This is a 301 redirect which is how the rule is currently written (because if no status is defined the rule defaults to a 301 redirect).
Note, the references to some of the other files in the HTML being redirected to are relative paths. They being with ../
which won’t work if you 200 proxy the path /
to this page. It would break all those <script>
tag src
links. With the 301 the path is unchanged so those links work.
<script type="text/javascript" src="../scripts/navigationLoader.js" async="async"></script>
<script type="text/javascript" src="../scripts/platformContentHandler.js" async="async"></script>
<script type="text/javascript" src="../scripts/sourceset_dependencies.js" async="async"></script>
<script type="text/javascript" src="../scripts/clipboard.js" async="async"></script>
If there are other questions about this, please let us know.