#Why my static site getting redirected to the same page?
5 messages · Page 1 of 1 (latest)
In Static Site Generation mode, Astro is generating html files. In the default config, each route gets its own directory. So, a route /algebra is actually /algebra/index.html. Hence the redirect to /algebra/ , the index.html is implied and understood by most web servers.
From the Astro docs,
https://docs.astro.build/en/reference/configuration-reference/#trailingslash
https://docs.astro.build/en/reference/configuration-reference/#buildformat
I keep the defaults and ensure that all my links (that I create via code) include the trailing slash