app/controllers/fiona7/sessions_controller.rb in infopark_fiona7-1.2.0.2.2 vs app/controllers/fiona7/sessions_controller.rb in infopark_fiona7-1.2.0.2.3
- old
+ new
@@ -18,10 +18,14 @@
end
end
def destroy
rsession.destroy
- redirect_to true_root_path
+ begin
+ redirect_to :back
+ rescue ActionController::RedirectBackError
+ redirect_to true_root_path
+ end
end
protected
def load_login_page
@login_page = Fiona7LoginPage.instance || Scrivito::BasicObj.root