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://184.108.40.206: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.