generativefm / generative.fm

A platform for playing generative music in the browser.
https://generative.fm
MIT License
1.59k stars 86 forks source link

stop the redirect to the root URL #33

Closed waldenn closed 5 years ago

waldenn commented 5 years ago

Hi, thanks for a fascinating project!

I just installed all the code and samples on my own server, and its all working fine: https://wikischool.org/gfm.html

The only thing I can't seem to figure out (perhaps because I'm not that knowledgeable about service-workers), is that when one visits the URL, there is a redirect to the root URL. Where can I prevent that from happening?

Thanks.

cdtinney commented 5 years ago

Probably this line:

<Route render={() => <Redirect to="/" />} />

This redirects all routes that don't match the defined routes to /.

https://github.com/generative-music/generative.fm/blob/master/src/components/app/index.jsx#L35

waldenn commented 5 years ago

Thanks, that fixed it!