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

Switch language #316

Closed
mrivoal opened this issue Nov 11, 2016 · 2 comments · Fixed by #331
Closed

Switch language #316

mrivoal opened this issue Nov 11, 2016 · 2 comments · Fixed by #331
Assignees
Labels
bug something isn't working
Milestone

Comments

@mrivoal
Copy link

mrivoal commented Nov 11, 2016

When we want to switch language from another, we get the following error after we have been asked for the confirmation:

capture d ecran 2016-11-11 a 12 04 21

The API request answers :

    Request URL:http://platec.unil.ch/knora/v1/userdata
    Request Method:POST
    Status Code:404 Not Found
@mrivoal mrivoal added bug something isn't working frontend (salsah) labels Nov 11, 2016
@benjamingeer
Copy link

Thanks, I'll look at this next week.

@benjamingeer benjamingeer self-assigned this Nov 11, 2016
@benjamingeer benjamingeer added this to the Beta Release milestone Nov 11, 2016
@benjamingeer
Copy link

This makes an HTTP POST to http://localhost:3333/v1/userdata, sending this payload:

{lang: "fr"}

That route doesn't exist (yet) in Knora. I don't understand how it's supposed to work, because it looks like the JavaScript doesn't do anything with the response, it just reloads the page (in the function build_lang_ctrl in index.html).

benjamingeer pushed a commit that referenced this issue Nov 28, 2016
* fix (salsah): Fix language switching and login/logout (ongoing, #316).

* fix (salsah): Fix language change and login/logout (#316).

* feature (webapi): Clarify alert box warning before language change.

* test: Add language change test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants