question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

top contributor link in non english profiles broken

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
naomi-lgbtcommented, Aug 18, 2021

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 the links.json files in the client/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.

1reaction
moT01commented, Aug 18, 2021

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’

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found