diff --git a/app/views/dashboard/projects/_blank_state_welcome.html.haml b/app/views/dashboard/projects/_blank_state_welcome.html.haml index 0e3eea1699e688f2f1f7d9e5cc66026026fda679..b4a04e613ab8f33bf9866163219ce87036cd56c1 100644 --- a/app/views/dashboard/projects/_blank_state_welcome.html.haml +++ b/app/views/dashboard/projects/_blank_state_welcome.html.haml @@ -11,7 +11,7 @@ = render Onboarding::ActionCardComponent.new(title: _('Explore public projects'), description: _('Public projects are an easy way to allow everyone to have read-only access.'), icon: 'earth', - href: trending_explore_projects_path) + href: starred_explore_projects_path) - if current_user.can_create_group? = render Onboarding::ActionCardComponent.new(title: _('Create a group'), diff --git a/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb b/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb index a5ad2495375f00ae793551d26405c14283ee5a48..860404c772536c98ff471067f99592dc5774f3b1 100644 --- a/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb +++ b/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb @@ -22,6 +22,12 @@ expect(rendered).to include(_('Create a project')) end + + it 'links to starred explore projects' do + render + + expect(rendered).to have_link(_('Explore public projects'), href: starred_explore_projects_path) + end end context 'with project creation disabled' do