I'm trying to access a page using Flask but static files are not served.
@app.route('/hello/',
methods=['GET','POST'])
def hello:
return render_template('hello.html')
I get the page hello.html on the browser but all static files path have changed to localhost:5000/hello/static... But if I change to:
@app.route('/hello')
The static files are served correctly. So whenever I have any route that has a forward slash, it changes the static files being served i.e
@app.route('/editFile/<int:id>')
Static files would change and be served under new path localhost:5000/editFile/static/... Routes with / after makes all static files be searched with wrong paths
If no / is added after route then static files are loaded correctly