Good afternoon,
I am currently developing a Flask application, and I am experiencing an error that had never happened to me before. I am currently setting up a dynamic route in Flask. This is the piece of code:
@app.route('/viewcar/<string:carId>')
def viewcar(carId):
print(carId)
car = Car.getCarById(carId)
return render_template("car.html", car=car)
However, when I pass any variable to the URL (let's say "http://127.0.0.1:5000/viewcar/4975facbbce511b65e14f44719340029-cf161184-91fc"), when I check the output in the console, it says that carId equals to favicon.ico instead of "4975facbbce511b65e14f44719340029-cf161184-91fc". Any ideas on what could this be? It has never happened to me before. Thanks in advance.