Hi guys. I’m building a web app with Elm as the frontend and flask as the backend. The app consists of a home page and several tutorial pages linked from it. The only issue is this:
- In the home page, click on the left-most button to enter the first tutorial
- Once you are in the first tutorial page, you can see that the page URL changes to http://106.15.39.117:8080/tutorial/Intro%20to%20Machine%20Learning
- Refresh the page or directly visit the URL in step 2 and you will get a page not found error.
However, the above issue never happens when I tested the app using elm-live on localhost. Does it have anything to do with how flask and elm-live serve files differently? How can I fix this? Thanks.
Front-end Elm code: https://github.com/AlienKevin/AIWaffle-website
Back-end python code: https://github.com/jimmy-zx/AIwaffle_Server1