I've encountered this weird issue that if I try to modify @app.route()
, my template for some reason stops loading its resources, like CSS and JS files.
With a route like this:
@app.route("/users/<user_id>")
it seems to be working fine and all is displayed correctly. If I modify it to
@app.route("/users/edit/<user_id>")
or
@app.route("/users/<user_id>/edit")
then the template itself works and loads correctly with the information about the specified user, but completely without resources, just HTML code. And in Chrome's Developers Tools there are errors for not finding the resource files.
I'm just working on a template project, learning things step by step, and while exploring the app routing and getting some variables through its parameters encountered this unexplained behaviour and trying to understand why it's happening this way.