Flask url_for() pass multiple parameters but only show one in the blueprint route?

Solution
@trips_blueprint.route('/mytrips/', methods=['GET','POST'])
@login_required
def show_details(selected_trip_location):
    
    if request.method == "POST":

        selected_trip_id = request.form.get("selected_trip_id")
        selected_trip = Trip.query.filter_by(id=selected_trip_id)

    ...