diff --git a/html/index_head_functions_add.html b/html/index_head_functions_add.html
index f55d1f8..35c4a9c 100755
--- a/html/index_head_functions_add.html
+++ b/html/index_head_functions_add.html
@@ -79,10 +79,13 @@
[if winix_function_is "ticket"]
[# !! dodac lightboxa tylko jesli tickety zawieraja obrazki ]
+
[end]
diff --git a/plugins/ticket/editticket.cpp b/plugins/ticket/editticket.cpp
index 6c76192..6f2b919 100755
--- a/plugins/ticket/editticket.cpp
+++ b/plugins/ticket/editticket.cpp
@@ -207,7 +207,7 @@ void EditTicket::MakeGet()
if( cur->request->IsParam(L"close") )
{
CloseTicket();
- system->RedirectToLastItem();
+ ticket_info->MakeRedirectIfPossible(*cur->request->last_item);
}
else
{