Redirect doesn't work as expected

my site: esportselostatistic.netlify.app

my site works like thus.

      <Router>
        <Routes>
          <Route path="/" element={<ELO />} />
          <Route path="/ELO_ranking/:league" element={<ELO />} />
          <Route path="/match_prediction/:league" element={<Prediction />} />
          <Route path="/match_of_the_week/:league" element={<MOTW />} />
        </Routes>
      </Router>

and my netlify.toml is like thus.

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

but when I reload my site excluding initial page, the page turns to white page.
I think this is related to that my url has two “/”, but I don’t know exactly.

How to fix my problem?

Hi @dhkang01,

I don’t see the above netlify.toml in your site. Are you sure it exists as you’ve specified?

As I try to fix another problem, I changed this site several times. But there is netlify.toml right now.( I updated again.)

Try changing the value of homepage in your package.json to /.

1 Like

Wow it works!
Thank you very much!!!

1 Like