You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on a concept in the hierarchy, e.g. "aapa mires" (this will perform a partial page load)
Change the UI language to Finnish by clicking on "suomeksi"
Again the new concept page (aapa mires) is lost and instead the user is taken back to the vocabulary home page (this time in Finnish).
Additional information (e.g. screenshots) about the problem
I think this happens because the links to change the UI language are just regular HTML links. The partial page load doesn't change their target URLs, so they will keep pointing at the original concept page.
This doesn't happen in Skosmos 2, because when performing the partial page load, the UI language links are rewritten as well by replacing the language links with those extracted from the dynamically loaded DOM:
URL address of the page where you encountered the problem
https://test.dev.finto.fi/yso/en/page/p19378
Description of the problem
This will show the page for the "cat" concept (kissa) in Finnish, which is not expected, since we were on the concept page for "European shorthair".
The vocabulary home page behaves in a similar way:
Again the new concept page (aapa mires) is lost and instead the user is taken back to the vocabulary home page (this time in Finnish).
Additional information (e.g. screenshots) about the problem
I think this happens because the links to change the UI language are just regular HTML links. The partial page load doesn't change their target URLs, so they will keep pointing at the original concept page.
This doesn't happen in Skosmos 2, because when performing the partial page load, the UI language links are rewritten as well by replacing the language links with those extracted from the dynamically loaded DOM:
Skosmos/resource/js/scripts.js
Lines 163 to 168 in 6073feb
The browser you used when the problem appeared
Firefox
The text was updated successfully, but these errors were encountered: