#212 Add <link rel=canonical> tag to any "forked" repository to promote original repo over the fork.

Open
opened 9 months ago by Ghost · 2 comments
Ghost commented 9 months ago

Problem:

When I search "Cloudflare MITM site:notabug.org", a fork appear above the original repository.

How to solve:

"Canonical link element" is important.

Please consider adding tag to the fork.

Forked repository (origin: /XXXX/YYYY) should have:

<html>
<head>
  <link rel="canonical" href="https://notabug.org/XXXX/YYYY" />
</head>
### Problem: When I search "_Cloudflare MITM site:notabug.org_", a fork appear _above the original repository_. ### How to solve: "[Canonical link element](https://en.wikipedia.org/wiki/Canonical_link_element)" is important. Please consider adding <link> tag to the fork. ``` Forked repository (origin: /XXXX/YYYY) should have: <html> <head> <link rel="canonical" href="https://notabug.org/XXXX/YYYY" /> </head> ```
Ghost commented 9 months ago
Poster
@themusicgod1 https://notabug.org/hp/gogs/issues/212

Better would be to have each repository have a 'canonical' field in its settings, somewhere, that is by default blank or its parent(in case of fork) but which can be set.

Better would be to have each repository have a 'canonical' field in its settings, somewhere, that is by default blank or its parent(in case of fork) but which can be set.
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.