Skip to content
代码片段 群组 项目
提交 fd9021f4 编辑于 作者: 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
No related branches found
No related tags found
无相关合并请求
- @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 @@ ...@@ -30,4 +30,12 @@
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
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册