Page 1 of 1

[suggestion]Dynamic language

Posted: Mon Oct 28, 2024 10:54 pm
by TVorace
Hello,

When adding links in comments, they redirect to the poster language, not the viewer language. Could we imagine a way to substitute the viewer's language to the original to have "universal" links?

The idea would be to rewriting the link from

Code: Select all

https://bdocodex.com/fr/article/111/
to

Code: Select all

$COOKIE['bddatabaselang']/article/111/
It would probably be more SEO/text browsers-friendly if redirect happens in proxy side rather than javascript glued (not very degradation graceful)
Found an example of mod_rewrite rule here : https://stackoverflow.com/questions/344 ... okie-value

Re: [suggestion]Dynamic language

Posted: Mon Oct 28, 2024 10:55 pm
by TVorace
Sadly, I currently dont have any proxy under my hands to test the SO code I shared. Shame on me ^^

Re: [suggestion]Dynamic language

Posted: Tue Oct 29, 2024 5:40 pm
by Kiriak
Good idea! Done.

Re: [suggestion]Dynamic language

Posted: Tue Oct 29, 2024 9:51 pm
by TVorace
Awesome :)