How can I change an html based on which link the user clicks?

Solution
@app.route(...)
def single-recipe():
    id = request.args.get('id')