Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current download link is dead #174

Open
1tylermitchell opened this issue Jun 25, 2024 · 7 comments · May be fixed by #176
Open

current download link is dead #174

1tylermitchell opened this issue Jun 25, 2024 · 7 comments · May be fixed by #176

Comments

@1tylermitchell
Copy link

Freecad.org - Download button links to a location that has a typo in it:
https://www.freecad.org/downloads.phpen

https://www.freecad.org/downloads.php - this works, so looks like a language tags is getting added by mistake or is not being processed correctly.

@1tylermitchell
Copy link
Author

Umm, looks like other links on the site have the same problem too!

@chennes
Copy link
Member

chennes commented Jun 25, 2024

@kkremitzki orr @yorikvanhavre any idea why this is happening?

@deltafactory
Copy link

@chennes It's related to the locale code moved to translation.php. Specifically, $lang = 'en'; which is appended to the URLs in header.php.

Prior to the latest commit, I believe $lang would either be blank or set to a querystring parameter based on the language specified in $_GET['lang'] (i.e. ?lang=en).

@deltafactory
Copy link

PR #175 looks like it should fix this with minimal changes.

@kkremitzki
Copy link
Member

Broadly speaking, we have a variable type overload--$lang is being used to store an ISO 639 language code like "en", but also a URL query string like "?lang=en".

@kkremitzki
Copy link
Member

Temporary workaround to this pushed via 4e90896 but leaving this open for discussion on the underlying issue I mentioned in the previous comment

yorikvanhavre added a commit to yorikvanhavre/FreeCAD-Homepage that referenced this issue Jun 26, 2024
@yorikvanhavre yorikvanhavre linked a pull request Jun 26, 2024 that will close this issue
@yorikvanhavre
Copy link
Member

My fault, sorry :/ Just submitted a PR for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants