home · contact · privacy
On Booking copy, jump into edit_structured view of new Booking.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 6 Feb 2025 21:17:23 +0000 (22:17 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 6 Feb 2025 21:17:23 +0000 (22:17 +0100)
ledger.py

index 1b3aa273dbaa3fb1908da8824212c191297cae36..f8f92c0d1db8a8ba4f7c64681e75d2e51a3d09f1 100755 (executable)
--- a/ledger.py
+++ b/ledger.py
@@ -426,9 +426,10 @@ class Handler(PlomHttpHandler):
         id_ = int(id_str)
         if action == 'move':
             id_ = self.server.move_booking(id_, dir_ == 'up')
+            return Path(self.path).joinpath(f'#{id_}')
         elif action == 'copy':
             id_ = self.server.copy_booking(id_, dir_ == 'to_end')
-        return Path(self.path).joinpath(f'#{id_}')
+            return Path(EDIT_STRUCT).joinpath(f'{id_}')
 
     def do_GET(self) -> None:
         """"Route GET requests to respective handlers."""