- Issue created by @prashantgajare
TB megamenu does not render Drupal language switcher links correctly when behind varnish caches.
The language switcher block placed in the mega menu on the environment showing the language links as the random node pages of the website instead of its current language's URL of the homepage. The random node URL were showing on the links of the language switcher as below on the homepage:
1) www.example.com/ja/node/xxxx - For Japanese site
2) www.example.com/zh-hans/node/xxxx - For Chinese site
3) www.example.com/node/xxxx - For English site
Expected behavior should be:
1) www.example.com/ja - For Japanese site
2) www.example.com/zh-hans - For Chinese site
3) www.example.com - For English site
Active
3.0
Code