Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
42208718
Commit
42208718
authored
Oct 21, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add canonical link for explore page
parent
7a0c681b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
app/views/explore/projects/index.html.haml
app/views/explore/projects/index.html.haml
+1
-0
changelogs/unreleased/270420-fj-add-explore-canonical-link.yml
...elogs/unreleased/270420-fj-add-explore-canonical-link.yml
+5
-0
spec/features/dashboard/root_explore_spec.rb
spec/features/dashboard/root_explore_spec.rb
+8
-0
No files found.
app/views/explore/projects/index.html.haml
View file @
42208718
-
@hide_top_links
=
true
-
page_title
_
(
"Projects"
)
-
header_title
_
(
"Projects"
),
dashboard_projects_path
-
page_canonical_link
explore_projects_url
=
render_dashboard_gold_trial
(
current_user
)
...
...
changelogs/unreleased/270420-fj-add-explore-canonical-link.yml
0 → 100644
View file @
42208718
---
title
:
Add canonical link for default explore route
merge_request
:
45746
author
:
type
:
changed
spec/features/dashboard/root_explore_spec.rb
View file @
42208718
...
...
@@ -30,4 +30,12 @@ RSpec.describe 'Root explore' do
include_examples
'shows public projects'
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment