summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f56a7d866..8cc385895 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -782,11 +782,15 @@ function rcube_webmail()
this.switch_task = function(task)
{
- if (this.task===task)
+ if (this.task===task && task!='mail')
return;
+ var url = this.get_task_url(task);
+ if (task=='mail')
+ url += '&_mbox=INBOX';
+
this.set_busy(true);
- location.href = this.get_task_url(task);
+ location.href = url;
};