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

All category description links appearing on authority pages link to English authority index #59

Closed
StephenAbbott opened this issue Jan 17, 2015 · 1 comment

Comments

@StephenAbbott
Copy link
Contributor

I've just noticed that the category description links on authority pages all link to the English authority pages on sobanukirwa.rw no matter whether the user has already used the language switcher.

So in all three of the following cases, the ministerial department link under the page title takes the user to the English ministries tagged list even though I've changed the text for each language version:

https://sobanukirwa.rw/body/minipresirep
https://sobanukirwa.rw/rw/body/minipresirep
https://sobanukirwa.rw/fr/body/minipresirep

Can this functionality be updated to pass the /en, /fr or /rw prefixes to the authority/category list tags so that the user stays within their chosen language settings?

@garethrees garethrees changed the title BUG? All category description links appearing on authority pages link to English authority index All category description links appearing on authority pages link to English authority index Jan 19, 2015
@garethrees
Copy link
Member

Related to mysociety/alaveteli#2112, https://github.com/mysociety/alaveteli/blob/rails-3-develop/app/models/public_body.rb#L351-L352 generates the URL in the model with no regard for the current locale. Sigh ;).

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

No branches or pull requests

3 participants