[suggestion]Dynamic language

Here you can ask your questions and post suggestions about site's development.
Post Reply
User avatar
TVorace
Posts: 11
Joined:Sun May 30, 2021 6:28 pm

[suggestion]Dynamic language

Post by TVorace » Mon Oct 28, 2024 10:54 pm

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

User avatar
TVorace
Posts: 11
Joined:Sun May 30, 2021 6:28 pm

Re: [suggestion]Dynamic language

Post by TVorace » Mon Oct 28, 2024 10:55 pm

Sadly, I currently dont have any proxy under my hands to test the SO code I shared. Shame on me ^^

User avatar
Kiriak
Site Admin
Posts: 536
Joined:Wed Sep 11, 2013 10:30 am
Discord:Kiriak#5590

Re: [suggestion]Dynamic language

Post by Kiriak » Tue Oct 29, 2024 5:40 pm

Good idea! Done.

User avatar
TVorace
Posts: 11
Joined:Sun May 30, 2021 6:28 pm

Re: [suggestion]Dynamic language

Post by TVorace » Tue Oct 29, 2024 9:51 pm

Awesome :)

Post Reply