I've noticed a persistent bug on the site when I'm looking at multiple translations into the same language. The links at the top are often completely mixed up. Here's a good example:
If you click on the #1 English translation, it takes you to the #3 translation instead.
If you click on #2, it takes you to #4.
If you click on #3, it takes you to #2.
If you click on #4, it takes you to #5.
If you click on #5, it takes you to #6.
If you click on #6, it takes you to #1.
On the English version of that same page, the errors are entirely different: https://lyricstranslate.com/en/rodrigo-amarante-tuyo-lyrics.html - #1 is correct, but #2 goes to #6, #3 goes to #5, #4 goes to #3, #5 goes to #4, and #6 goes to #2.
The German version of that page has slightly different errors still (e.g. #6 goes to #3): https://lyricstranslate.com/de/rodrigo-amarante-tuyo-lyrics.html
Note that the links are only incorrect when you're on the untranslated page that has the song alone. All of the links do work correctly when you're already on any page with a side-by-side translation. For example, if you go to https://lyricstranslate.com/es/tuyo-yours.html or https://lyricstranslate.com/es/tuyo-yours.html-3, all of the links work properly both on the top list of all translations, and on the list of the 6 English translations.
I've noticed this for a while, but I've just now figured out the pattern. Each of the translations is assigned a unique URL based on the original song title and the translated title. When there are multiple translations of the same song using the same title, a number is appended to the URL. This seems to be how it works:
* The first translation is not appended. The URL ends with ".html"
* The second translation is appended so that the URL ends with ".html-0"
* The third translation is appended so that the URL ends with ".html-1"
* The fourth translation is appended so that the URL ends with ".html-2"
* The Xth translation is appended so that the URL ends with ".html-(X-2)"
In general, this would work fine, but it seems like it gets messed up when people have different translations of the song title, or when translations get deleted, or there's another song with the same title. The website seems to assume that any URL that ends with ".html-1" is the third translation, no matter which translation it actually is. Again, this is only true on the song page. The other pages work as intended.
In the case of Rodrigo Amarante's "Tuyo" one source of the error is that there's another song called "Tuyo" by Romeo Santos: https://lyricstranslate.com/es/tuyo-yours.html-2
The Romeo Santos version was appended with ".html-2" apparently because it was translated after the third translation of Amarante's version. And unlike the URLs generated for the song page, the URLs generated for the translations do not include the artist name, so this is bound to keep happening with lots of song titles that don't have unique names.
Also, this is not restricted to "Tuyo" as if it's a weird exception. It's an error found across the website in multiple languages. Here are several more examples:
There's something more complicated going on when people translate the titles differently. It's not as straightforward as "html-0 = translation #2" etc. I can't figure out the pattern exactly, but this page for "Du Hast" that has multiple translations with multiple different titles might be a good place to test things out:
I've done some of the detective work on figuring this out, but I don't have the technical expertise to untangle this mess. Whatever's being done on the translation pages works fine, so it may be a simple matter of transferring the code over to the song pages.
In any case, it's a frustrating error, especially when you have a translation you like and the links are all messed up, or you're trying to open up your own translation. I imagine it's one of those confusing annoyances that drives away new visitors, as well, because I remember being annoyed by it almost from day one.
Can someone work on this?