From 1908f61268761530c0a7f271a9786f24be190e05 Mon Sep 17 00:00:00 2001
From: philipp <philipp@hofer.link>
Date: Thu, 16 May 2024 08:17:53 +0200
Subject: [PATCH] allow removal of guests with special chars (e.g.
 questionamrk)

---
 templates/includes/macros.html.tera | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera
index 1a59716..5b8cb31 100644
--- a/templates/includes/macros.html.tera
+++ b/templates/includes/macros.html.tera
@@ -191,7 +191,7 @@
                     {% if rower.is_real_guest %}
                         <small class="text-gray-600 dark:text-gray-100">(Gast)</small>
                         {% if allow_removing %}
-                            <a href="/planned/remove/{{ trip_details_id }}/{{ rower.name }}"
+                            <a href="/planned/remove/{{ trip_details_id }}/{{ rower.name | urlencode }}"
                                class="absolute r-0 bg-red-500 w-5 h-5 text-white rounded-full flex items-center justify-center transform rotate-45 top-0 right-0">
                                 <svg class="inline h-5 w-5"
                                      width="16"