Hello, I am using a rewrite for a static site but it appears to be redirecting any page that is not the homepage (ie click about and then refresh on about page sends you to homepage). I have tried a created a minimal test case https://sveltekit-test1.onrender.com/ with just the sveltekit demo app and the rewrite below (which I thought would work for a SPA). Just looking for any guidance as to why this may be happening.
I just wanted to circle back to this with something that I noticed when refreshing on the Render deploy. It continues to redirect with a rewrite but if I add a trailing slash to the url, then it no longer does redirects and it stays on the page as intended.
I tested on Netlify to see if I would run into the same results and I noticed that refreshing with the rewrite in place would keep me on the page as expected but add a trailing slash in the url:
https:// elastic-haibt-3cbf7c.netlify.app/about
I tried changing the trailing slash in the svelte config to never or always but it didn’t seem to make a difference: https:// kit.svelte.dev/docs#configuration-trailingslash