From e350c7b90b041ebced8987b20f2c5e4cf040f430 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 3 Feb 2010 16:09:18 +0000 Subject: [PATCH] Monotone-Parent: d93911609e298d0802a3f31c0cf88a9ca47ee584 Monotone-Revision: 14183e9d9367b240b6e0585031a87772c952285a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-02-03T16:09:18 Monotone-Branch: ca.inverse.sogo --- UI/MainUI/SOGoRootPage.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index d2df7610c..af50c4846 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -223,7 +223,8 @@ else { oldLocation = [[context request] uri]; - if (![oldLocation hasSuffix: @"/"] + if ([context clientObject] + && ![oldLocation hasSuffix: @"/"] && ![oldLocation hasSuffix: @"/view"]) response = [self redirectToLocation: [NSString stringWithFormat: @"%@/", oldLocation]];