Pretty urls return 404 on /about instead of 301 to /about/

Step 1 result
Deploy file browser contains 2 files:

  • favicon.svg
  • netlify.toml

Step 2A (Static Site)
Deploy file browser contains 4 files:

  • about/index.html
  • favicon.svg
  • index.html
  • netlify.toml

demo: https://prettystatic.netlify.app/about/
repo: GitHub - my-astro/prettystatic

I’ve tested pretty_urls on a static variant and it works as expected: both /about.html and /about redirect to /about/.

So now we know on practice, that pretty_urls work on static websites and do not apply to Astro SSR (output: ‘server’). For people who will search for such topic – I first thought that this thread is unrelated, but seems it is since Astro Netlify adapter is a function.

The thing I want to clarify is URLs normalization, I can’t wrap my head over it and if you have any ideas how can I test if normalization kicks in will be much appreciated!