Getting strange artifacts in URL from Flask's url_for [duplicate]
Solution 1:
In the route registration, you have to use angular brackets for parameters:
@app.route('/add/<tmdb_id>', methods=['POST'])
def add_movie(tmdb_id):
The %7B
and %7D
strings are URL-encoded {}
brackets.