Commit fd9021f4 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch '270420-fj-add-explore-canonical-link' into 'master'

Add canonical link for default explore route

See merge request gitlab-org/gitlab!45746
parents e2ebd314 42208718
- @hide_top_links = true - @hide_top_links = true
- page_title _("Projects") - page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path - header_title _("Projects"), dashboard_projects_path
- page_canonical_link explore_projects_url
= render_dashboard_gold_trial(current_user) = render_dashboard_gold_trial(current_user)
......
---
title: Add canonical link for default explore route
merge_request: 45746
author:
type: changed
...@@ -30,4 +30,12 @@ RSpec.describe 'Root explore' do ...@@ -30,4 +30,12 @@ RSpec.describe 'Root explore' do
include_examples 'shows public projects' include_examples 'shows public projects'
end end
it 'includes canonical link to explore projects url' do
visit explore_root_path
canonial_link = page.find("head link[rel='canonical']", visible: false)
expect(canonial_link[:href]).to eq explore_projects_url
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment