From dd9390c649bfc679390320a5f1e5d70e778efc1c Mon Sep 17 00:00:00 2001 From: Aiirondev Date: Fri, 26 Jun 2026 21:27:09 +0200 Subject: [PATCH] fix of a slight mistake with the Link passing --- Web/modules/terminplaner/blueprint.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Web/modules/terminplaner/blueprint.py b/Web/modules/terminplaner/blueprint.py index 3857ce6..f3fcc52 100644 --- a/Web/modules/terminplaner/blueprint.py +++ b/Web/modules/terminplaner/blueprint.py @@ -307,19 +307,11 @@ def configure(): flash('Fehler beim Erstellen des Terminplans.', 'error') return redirect(url_for('terminplaner.configure')) - # Resolve the URL string here using Flask's native url_for instead of relying on the database layer - generated_link = url_for( - 'terminplaner.client', - appointment_id=str(inserted_id), - tenant=_current_tenant_id() or None, - _external=True - ) - flash('Der Terminplan wurde angelegt.', 'success') return render_template( 'termin_configure.html', school_periods=cfg.SCHOOL_PERIODS, - generated_link=generated_link, + generated_link=inserted_id['link'], calendar_link=None, # Update with calendar service link generation if needed add_to_calendar=add_to_calendar, email_service_enabled=cfg.EMAIL_ENABLED,