top contributor link in non english profiles broken
See original GitHub issueThe top contributor link in user profiles of non English languages is broken
To reproduce:
go to https://www.freecodecamp.org/espanol/mot01
click the top contributor
(Contribuyente principal
) link
page hangs
It tries to take you to https://www.freecodecamp.org/espanol/top-contributors Chinese goes to https://chinese.freecodecamp.org/top-contributors, which gives a 404
English goes to https://freecodecamp.org/top-contributors, which redirects to the news article
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How to use links in documentation - Contributor guide
This article provides guidance on creating links to other content on Microsoft Learn.
Read more >Manage Creator Mode | LinkedIn Help
Manage Creator Mode · Click the Me icon at the top of your LinkedIn homepage. · Click View Profile. · Scroll down to...
Read more >5 common mistakes with rel=canonical - Google Developers
The rel=canonical link consolidates indexing properties from the duplicates, like their inbound links, as well as specifies which URL you'd like displayed in ......
Read more >Configuring Discovery Views for Primo VE
Configuring the Links Menu – Defines the links that appear on the Links menu, which appears at the top of Primo VE. Search...
Read more >Backlinks Types & Linkbuilding: Ultimate Guide - SEOWORK
Broken link building. The strategy of building a link profile on replacing broken links is quite simple, but not as effective as Guest...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay here’s my proposed approach:
https://github.com/freeCodeCamp/freeCodeCamp/blob/21fbbe69d55f00b481df5b05b4edcbb01ab59c93/client/src/components/profile/components/Camper.tsx#L132 Change the
to
value here to{t('links:top-contributors')}
Add
"top-contributors": "https://freecodecamp.org/top-contributors"
to each of thelinks.json
files in theclient/i18n/locales/
languages.This will render the correct English link in all languages, and allow us to change the link for a specific language if the article is translated.
Provided no one objects, I think this is straightforward enough that we could open to
first timers only
.Well, I don’t think that article is translated to any other languages - so probably going to the English version for all of them would be fine for now.
But, I suppose ideally, we would check ‘if translated article exists, go there, else go to English’