summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-09-28 21:21:41 -0700
committerStan Hu <stanhu@gmail.com>2015-09-28 21:24:24 -0700
commitabae352e59b3fe8574249041508afd68bff8bab2 (patch)
tree211f3a642c87a38fa548e487183987b241afa644
parent5b7e491c393f3ba436e45454a58709f6d70bbc5c (diff)
downloadgitlab-ce-abae352e59b3fe8574249041508afd68bff8bab2.tar.gz
Link directly to the projects page instead of the root controller
If "Your Projects' Activity" dashboard setting were selected, it would be impossible to navigate to the projects page since the redirection would always bounce back to the activity dashboard. Fixes bug introduced by !1446.
-rw-r--r--app/views/layouts/nav/_dashboard.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/nav/_dashboard.html.haml b/app/views/layouts/nav/_dashboard.html.haml
index 21d8655131f..b1a1d531846 100644
--- a/app/views/layouts/nav/_dashboard.html.haml
+++ b/app/views/layouts/nav/_dashboard.html.haml
@@ -1,6 +1,6 @@
%ul.nav.nav-sidebar
= nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: 'home'}) do
- = link_to root_path, title: 'Projects', data: {placement: 'right'} do
+ = link_to dashboard_projects_path, title: 'Projects', data: {placement: 'right'} do
= icon('home fw')
%span
Projects