codingdavinci / relaunch2018

This is the new Coding da Vinci website (online since September 2020).
https://codingdavinci.de
GNU General Public License v2.0
1 stars 1 forks source link

language switching - landing page, event pages, login forms #233

Closed lucyWMDE closed 4 years ago

lucyWMDE commented 4 years ago

expanded from part 2 of issue #230

class="language-link is-active" is only applied (to "DE" option) on http://codingdavinci.snater.com/de/ or http://codingdavinci.snater.com/. image

Once I navigate to the French or English versions of the landing page the language controls no longer work - none of the links are active and none of them are clickable. image

The same seems to be true for single events e.g. http://codingdavinci.snater.com/de/events/saar-lor-lux-2020 German version is fine ("DE" option is active) but once I navigate to the french version of the page, language controls are no longer active or clickable.

The same is ALSO true for

German version is fine ("DE" option is active) but once I navigate to the french/english version of the page, language controls are no longer active or clickable.

Language switching for Einfacher Seiten/FAQ/Presse/Events overview seems fine, for projekt overview, daten overview, news overview see issue #232

lucyWMDE commented 4 years ago

This seems to be the same language switching issue mentioned in issue #216 for http://codingdavinci.snater.com/de/user/login http://codingdavinci.snater.com/de/user/password http://codingdavinci.snater.com/de/user/register http://codingdavinci.snater.com/de/user/register?role=institution http://codingdavinci.snater.com/de/user/reset

I've cleared cache and tested this multiple times. It's definitely a problem.

Snater commented 4 years ago

Closing with #231 and #232. All these indeed seem to be related. I was able to reproduce some strange behaviour, but only on staging (not locally) and only when not logged in. All this seems to be related to caching—with caching in that context not referring to the browser, but to the Drupal cache. After clearing the cache (/admin/config/development/performance) things seemed to work for the moment. That is, why I was also not able to reproduce the issue the last time because I had cleared the cache before trying to reproduce.

I have found a Drupal core issue ticket that seems to describe what we are experiencing here and I applied the alternative method to render the language switcher as described in the issue: https://www.drupal.org/project/drupal/issues/3146564#comment-13741784

Hopefully, this solves our issues with the language switcher.

lucyWMDE commented 4 years ago

super great - thanks Henning.