riot-js

Open full view…

Page reload not working for riot router

skwny
Sat, 17 Dec 2016 16:53:32 GMT

I have a few routes in my app so far: `/`, `search`, `my-debates`, and the newest one, `debate/*`. The last one (`debate/*`) is the route giving me the trouble. When I execute the route `riot.route('/debate/<UriEncodedString>')`, my router picks it up and the app shows what it's supposed to. However, on refreshing the page I get 404: [Qv3Yv](//muut.com/u/riot-js/s2/:riot-js:AeY5:qv3yv.png.jpg) It appears that my app is now looking or public resources in the first part of my route (debate), where it doesn't actually exist. This only occurs on refresh and at no other point or route within the app. What could be the reason for this?