#25 Language redirection breaks generic links
Closed: Fixed 4 years ago by codeblock. Opened 4 years ago by jibecfed.

As discussed on IRC today:

[13:51] <jibec> 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] <jibec> s/cose/code/
[13:52] <puiterwijk> 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] <jibec> ok thanks, but that breaks generic links
[13:57] <jibec> should I open the issue on fedora infra or webistes?
[13:58] <jibec> 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] <jibec> 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] <jibec> this affects the user experience when you write links in documentation or other websites
[14:02] <jibec> 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)

4 years ago

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

Login to comment on this ticket.

Metadata