As discussed on IRC today:
[13:51] puiterwijk: could you please tell me what's the magic allowing lang redirect to work even if you removed most of the cose? https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/roles/fedora-web/getfedora/files/languages.conf?id=d166180eb2244e13603aca00c999c56298ced290 [13:51] s/cose/code/ [13:52] jibec: https://pagure.io/fedora-web/websites/blob/master/f/sites/templates/index.html.var - that is being used to determine the correct index.html [13:57] ok thanks, but that breaks generic links [13:57] should I open the issue on fedora infra or webistes? [13:58] example: https://alt.fedoraproject.org/alt/ will display your language, https://alt.fedoraproject.org/fr/alt/ will display French, https://alt.fedoraproject.org/en/alt/ will display english [13:58] and with getfedora: https://getfedora.org/workstation/ will do a 404, https://getfedora.org/fr/workstation/ will display French, https://getfedora.org/en/workstation/ will display english [14:00] this affects the user experience when you write links in documentation or other websites [14:02] beside being ugly in the apache config file, where there other reasons to change the previous behavior?
I did some hacking around and roughly fixed this.
Metadata Update from @codeblock: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
I confirm it works, thank you @codeblock
would you mind explaining a few sentences how the system you built works? I wonder how to do the same for docs